This package has been deprecated

Author message:

pls dont use this is 2 much hack

promise_util

2.0.0 • Public • Published

promise_util

Static Methods:

  • create() -> Promise
  • resolve(Promise, *) -> Promise
  • reject(Promise, *) -> Promise
  • sleep(Number)/delay(Number) -> Promise
  • each(Iterable) -> Promise

Static resolve/reject behave normally if:

  1. arguments.length is 1
    OR
  2. arguments[0] is not instanceof Promise

Prototype Methods:

  • resolve(*) -> Promise
  • reject(*) -> Promise

Prototype Properties:

  • info -> { status: String, value?: * }
  • isResolved -> Boolean
  • isRejected -> Boolean
  • isPending -> Boolean

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i promise_util

Weekly Downloads

3

Version

2.0.0

License

MIT

Last publish

Collaborators

  • snek