Nonconformist Propaganda Machine

    postponed-promise

    1.0.0 • Public • Published

    Postponed promise

    An elegant and simple way to use a promise

    Installation & Usage

    yarn add postponed-promise
    import PostponedPomise from "postponed-promise"
     
    export default function () {
      let postponedPomise = new PostponedPomise()
     
      doSomething()
        .then(someParams => postponedPomise.resolve(someParams))
        .catch(postponedPomise.reject)
        
      return postponedPomise.promise
    }

    Install

    npm i postponed-promise

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    1.71 kB

    Total Files

    5

    Last publish

    Collaborators

    • donsalvador