Closed jltrv closed 9 years ago
I'm +1 for Promise
, but maybe @fengmk2 thinks thunk work fine now
.
I went ahead and created pull request #30.
This would be very nice to have, especially since async await
doesn't seem to play ball with the current implementation.
e.g. this doesn't work yet:
async function (req, res) {
const body = await parse.json(req)
}
But from my understanding it will work if it was promise based.
+1
Included in 4.0 :smile_cat:
Hello, since thunks are deprecated in favor of promises in co, maybe co-body should switch to promises. I'm willing to work on a pull request if there is any interest. Just tell me.