yieldr
Installation
npm install yieldr
Usage
var yieldr = { return Promise}
Yieldables
You can yield anything just like native yield
.
But yieldr
will try to resolve these types:
- Promises
- Generators and generator functions
var fs =
Note: there is a yield*
expression in ECMAScript 6, and it's designed for delegating to another generator or iterable object.
Compatibility
yieldr
requires Promise
, you should use node >=0.11.9
or include a polyfill (try bluebird).
Contributors
Via GitHub