Alberto Leal
Alberto Leal
Wish this is also done in async.js ;)
Example using browserify api: ``` js var fs = require('fs'); var browserify = require('browserify'); var b = browserify('./beep.js'); b.bundle({standalone: 'beep-boop'}).pipe(fs.createWriteStream(__dirname + '/bundle.js')); ``` Should be easy enough to just pass...
Probably won't be able to. However, I think @josdejong would do a better job of the PR than I could.
@devote any updates on tests?
+1. https://github.com/tj/co#yield-array Should be easy to implement. Yielding and object would be nice too: https://github.com/tj/co#yield-object
Agreed, there is already a PR at `co` to remove thunks and support async/await style functions using promises: https://github.com/tj/co/pull/154 Here are my thoughts: - Remove thunk support. - `suspend(fn*)` should...
Wow. I didn't know ES6 promises silently swallow unhandled errors. I hope that changes before ES6 lands. `suspend.resumeRaw([bool])` was only a suggestion; I'm fine with it explicitly returning an array....
@jmar777 I really like: `var suspend = require('suspend')({ promiseConstructor: require('bluebird') });` The reason being is that I use `suspend` along with Facebook's `regenerator` in client-side apps.
Interesting. I like it. From a glance, it seems explicit that `db.get` would traditionally take a callback function. But at the same time, you'd have to keep in mind the...
If we have `suspend.continue(options)`, can we also have `suspend.continue({ multi: true, errorFirst: true })` for APIs that take callbacks of the following: `callback(err, foo, bar)`? Mayhaps, `suspend.continue({ errorFirst: true })`...