Re:Sane Async Patterns in JavaScript
by vec on Thursday April 04, 2013 @05:21PM
(#5495380)
I'm getting in the habit of letting the caller decide, something like the following:
So if I call myAsyncFunc(foo, bar) it returns a promise and if I call myAsyncFunc(foo, bar, cb) it returns itself for chaining.
[ Parent
| on HN ]
There are no comments on this comment yet.