Defer
Defer execution of a task.
Installation
npm install --save defer
Usage
const defer = { // create user return user}
API
defer(fn): Promise
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.