npm install deferDefer execution of a task.
``sh`
npm install --save defer
`js
const defer = require('defer')
async function signup (input) {
// create user
defer(async () => {
// send welcome email
})
return user
}
`
Returns a Promise that will resolve with the return value of fn. The function fn` will be invoked at a later stage in the event loop.