Neurotic and Probably Misinformed

    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

    Keywords

    none

    Install

    npm i promise_util

    DownloadsWeekly Downloads

    9

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • snek