metasync
metasync copied to clipboard
Asynchronous Programming Library for JavaScript & Node.js
```js metatests.test('unpredictable search result', test => { const data = [{ name: 'Bob', age: 34 }, { name: 'Bob', age: 45 }]; const expected = 34; // actual search result...
Refs: https://github.com/metarhia/metasync/issues/416
I added support for iterable objects using [Symbol.iterator], also tests are written
``` ee.on('e1', async () => true); await ee.emit('a1'); ``` I suppose we need to hide counters when waiting for multiple event handlers to this abstraction.
* Don't create object every time in Promise resolve * Collect results in an array in Compose bench as it is dome in Promise.all
- [x] Basic implementation - [x] `Future.prototype.promise()` - [x] futurify - [x] Tests
Any usage of `ArrayChain` may be replaced by `metasync.AsyncIterator`. WDYT @belochub @lundibundi @tshemsedinov