Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmigranto/awaitability
Utilities for composing async/await functions.
https://github.com/elmigranto/awaitability
async-await es2017 javascript modules promise utilities
Last synced: about 2 months ago
JSON representation
Utilities for composing async/await functions.
- Host: GitHub
- URL: https://github.com/elmigranto/awaitability
- Owner: elmigranto
- License: mit
- Created: 2017-02-10T20:07:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T20:19:59.000Z (almost 8 years ago)
- Last Synced: 2024-04-14T16:10:54.955Z (10 months ago)
- Topics: async-await, es2017, javascript, modules, promise, utilities
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/awaitability
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`Promise`s are in core, `async` / `await` is almost here, let's prepare!
- convert callback APIs into awaitable functions (promisify);
- await multiple tasks with ability to limit concurrecny;
- map with async functions.Though, there are tests and I am reasonably sure stuff works,
I wouldn't put this into production without a review.
Things are pretty raw and this is mostly trying out new shiny toys,
so approach is "make it work first, make it fast/stable later".Also, there is nothing here you can't achieve with slightly longer
code using `Promise.all` and some array methods (except limit concurrency).
So I don't really know how useful this is yet :)There are a bunch of [examples](/examples), run them with `--harmony` flag.
TODOs:
- `filter`, `reject`;
- probably more stuff?
- support for iterables (`Set`, `Map`, etc.);
- benchmarks (lol);
- docs.