transform generator, generatorFunction, promise and other yieldables back to thunk
npm install back-to-thunkback-to-thunk
=============
transform generator, generatorFunction, promise and other yieldables back to thunk
sometimes you want to transform all the yieldables back to thunk, so you can do some more fine-grained operation and compose. like co-any.
```
npm install back-to-thunk
`
var toThunk = rquire('back-to-thunk');
var thunk = toThunk(function *() {
yield 1;
return 2;
});
``
MIT