meteor-promise
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

promise Build Status

ECMAScript 2015 Promise polyfill with Fiber support

The static methods Promise.async and Promise.await implement the relaxed async and await functions proposed in this talk: Why Fibers Make Sense For Meteor.

Note: as of v0.4.0, this library no longer depends directly on the fibers package. If you want to use this library in a codebase that uses Fibers, make sure to set Promise.Fiber to the Fiber constructor that you use elsewhere. For example, here is how it's done in the test code for this repository.

If you'd like to use this package in a Meteor project, a much simpler approach is simply to run meteor add promise.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i meteor-promise

    Weekly Downloads

    31,732

    Version

    0.9.0

    License

    MIT

    Unpacked Size

    14 kB

    Total Files

    8

    Last publish

    Collaborators

    • benjamn
    • mdg