0.0.1 • Published 4 years ago

using-its-own-promise-pmb v0.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

using-its-own-promise-pmb

For the really exotic cases in which an async function needs to refer to a promise that resulted from its invocation.

API

This module ESM-exports one function:

usingItsOwnPromise(func, ...args)

Returns a promise pr for the result of deferredly invoking async function func with arguments (pr, ...args).

Usage

You'll probably never need this, except maybe when writing a custom task scheduler or resource manager.

Known issues

  • Needs more/better tests and docs.

 

License

ISC