Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meteor/promise
ES6 Promise polyfill with Fiber support
https://github.com/meteor/promise
hacktoberfest promise
Last synced: 6 days ago
JSON representation
ES6 Promise polyfill with Fiber support
- Host: GitHub
- URL: https://github.com/meteor/promise
- Owner: meteor
- License: mit
- Archived: true
- Created: 2015-05-06T18:15:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-10-02T07:41:38.000Z (over 3 years ago)
- Last Synced: 2024-09-21T08:34:08.881Z (4 months ago)
- Topics: hacktoberfest, promise
- Language: JavaScript
- Homepage:
- Size: 124 KB
- Stars: 63
- Watchers: 26
- Forks: 15
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# promise [![Build Status](https://travis-ci.org/meteor/promise.svg)](https://travis-ci.org/meteor/promise)
ECMAScript 2015 Promise polyfill with Fiber support> This repository has been merged into Meteor main repository. You can [find it there](https://github.com/meteor/meteor/tree/devel/npm-packages/meteor-promise).
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](http://benjamn.github.io/goto2015-talk).Note: as of
[v0.4.0](https://github.com/meteor/promise/releases/tag/v0.4.0), this
library no longer depends directly on the
[`fibers`](https://www.npmjs.com/package/fibers) package. If you want to
use this library in a codebase that uses `Fiber`s, make sure to set
`Promise.Fiber` to the `Fiber` constructor that you use elsewhere. For
example,
[here](https://github.com/meteor/promise/blob/1e52f297b02ea83e7fb48ba4c2b17d3b4503c001/test/tests.js#L2-L5)
is how it's done in the test code for this repository.If you'd like to use this [package](https://atmospherejs.com/meteor/promise)
in a [Meteor](https://www.meteor.com/) project, a much simpler
approach is simply to run `meteor add promise`.