metasync icon indicating copy to clipboard operation
metasync copied to clipboard

Asynchronous Programming Library for JavaScript & Node.js

Results 45 metasync issues
Sort by recently updated
recently updated
newest added

Decompose collector.class.js into KeyCollector and DataCollector

compatibility

compatibility
optimization

```js const counter = metasync .count(5) .timeout(2000) .done(err => { /* timed out or done */ }); counter(4); counter(-2); counter(10); // now value = 12 but > 5 and we...

functionality

Web locks are named mutexes: ```js locks.request('namedResource', async lock => { // critical section }); ``` See spec: https://wicg.github.io/web-locks/

functionality
research

`TimedMutex` allow us to lock shared resource for an interval less then timeout ```js class TimedMutex { status: SM_UNLOCKED | SM_LOCKED, constructor(timeout), timeout: , async enter(callback), // if no callback...

functionality

- `QueuedMutex` allow us to wait for resource in queue - Multiple threads can register their interest to access resource ```js class QueuedMutex { status: SM_UNLOCKED | SM_LOCKED, async enter(callback),...

functionality

- `SharedMutex` allow us to access shared resource in both ways exclusive and shared. - Multiple threads can access resource for read access at a same time - Only one...

functionality

I propose to add support for everything that implements iterable or iterator protocols to such methods as: * `metasync.map()` * `metasync.filter()` * `metasync.each()` * `metasync.series()` * `metasync.find()` * `metasync.every()` *...

Syntax idea by @primeare, modifications by @tshemsedinov ```js const { μ } = require('metasync'); const f = μ(f1)(f2, μ(f3)(f4), f5)(f6); f((err, result) => { console.dir(err, result); }); ``` Known problems:...

Compare ```js Array.prototype.map((value, index, array) => (result) [, thisArg]) : Array ``` and current implementation: ```js metasync.map(array, (value, callback) => callback(result) [, thisArg]); ``` we may change to: ```js metasync.map(array,...

compatibility