cojs / busboy

Busboy multipart parser as a yieldable
154 stars 24 forks source link

Plans for async/await compatibility #30

Open m4nuC opened 8 years ago

m4nuC commented 8 years ago

async-csp would pretty much be a drop in replacement for the chan module which as far as I can tell doesn't seem compatible with async/await. I've ran a few tests and async-csp works great so far. Would a PR make sense ?

m4nuC commented 8 years ago

For now I've ended up not using channels at all. Instead I made a small "very inspired" promised based wrapper around busboy: async-busboy It plays nicely with koa 2. I am planning on using channeling too tho for when validation on fields is not required.

haoxins commented 8 years ago

@m4nuC Nice work! I don't have time to take a look at async-csp for now. And it will be ideal if we can make chan compatible with async/await also.