user-async-function

1.0.0 • Public • Published

user-async-function

Build Status

This module exports a function that calls a user function and waits for its completion. This function can be a callback-calling function, an async/await function, or a promise-returning function.

How to use

const userAsyncFunction = require('user-async-function')

// somewhere in your code...
userAsyncFunction(userOptions.someAsyncFunction).then(...)

// or in an async function
await userAsyncFunction(userOptions.someAsyncFunction)

Readme

Keywords

none

Package Sidebar

Install

npm i user-async-function@1.0.0

Version

1.0.0

License

MIT

Unpacked Size

1.73 kB

Total Files

3

Last publish

Collaborators

  • fabiosantoscode