README
@r14c/async-utils(1) -- async implementations of common utility functions
don't block
async-utils is designed to work with the new async syntax to allow you to write non-blocking
code that looks synchronous. functions like Array.prototype.map() are very useful, but
operating over large collections will always block. async-utils rethinks a full range of
useful tools to work with the event loop rather than against it.
Modules
Functions
- fork(fns, predicate) ⇒
Promise.<any>⏏ execute a chain of async operations using the return value of each function as the argument for the next
- microTask(fn) ⏏
schedule a task to run on nextTick
- to(promise) ⇒
Promise⏏
fork
fork(fns, predicate) ⇒ Promise.<any> ⏏
execute a chain of async operations using the return value of each function as the argument for the next
Kind: global method of fork
| Param | Type |
|---|---|
| fns | Array.<function(value)> |
| predicate | any |
microTask
microTask(fn) ⏏
schedule a task to run on nextTick
Kind: global method of microTask
| Param | Type |
|---|---|
| fn | function |
to
to(promise) ⇒ Promise ⏏
Kind: global method of to
| Param | Type |
|---|---|
| promise | Promise |