4 ms·
Why hasn't anyone brought up error handling yet? What happens when an error is thrown inside a twait block? What happens when 2 errors are thrown inside a twait
by sjs 15y ago
Why hasn't anyone brought up error handling yet? What happens when an error is thrown inside a twait block? What happens when 2 errors are thrown inside a twait block?
Tame.js looks nice in that it's very simple to learn but ~300 lines of plain old JavaScript[1] can give you a general purpose deferred/promise library with more flexibility should you need to do something other than wait on N async operations and then use the results.
[1] https://github.com/heavylifters/deferred-js/blob/master/lib/deferred.js https://github.com/heavylifters/deferred-js/blob/master/lib/...