asfktz / awaity.js Goto Github PK
View Code? Open in Web Editor NEWA functional, lightweight alternative to bluebird.js, built with async / await in mind.
License: MIT License
A functional, lightweight alternative to bluebird.js, built with async / await in mind.
License: MIT License
Hi, Please consider the following code; I passed in promises that "immediately" resolves, I was expecting any()
would resolve the first one in the array, but it resolves last one. Is it intended behavior?
const { any } = require('awaity/esm');
const fs = [
async n => n, // resolves 0
async n => {
throw new Error(`n!`);
}, // rejects 1
async n => n, // resolves 2
];
const ps = fs.map((f, i) => f(i));
any(ps)
.then(p => console.log(`any resolved:`, p))
.catch(err => console.error(`any rejected:`, err));
// any resolved: 2
Hello,
I was wondering. Would it be possible to use your library on an older runtime, like Node v4?
You use a few async
functions for some reason in your library itself. I'm not sure if that choice breaks compatibility with Promise-based but not async/await ready versions.
Hey,
Is there any plan to comply to the FL spec?
For brackground:
lodash/lodash#2406
ReactiveX/rxjs#34
Is there a compatibility with typescript?
I am looking for lightweight Promise library.
This library provide all features I want.
But it seems Promise polyfill is not included?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.