README
loopback-async-boot
Higher order function to use async functions as loopback boot scripts.
Usage
// boot/script.js
const handler = require('loopback-async-boot');
module.exports = handler(async(app) => {
await ...
});
Higher order wrapper to allow async functions as loopback boot scripts
<script type="module">
import loopbackAsyncBoot from 'https://cdn.skypack.dev/loopback-async-boot';
</script>
Higher order function to use async functions as loopback boot scripts.
// boot/script.js
const handler = require('loopback-async-boot');
module.exports = handler(async(app) => {
await ...
});