node-vasync icon indicating copy to clipboard operation
node-vasync copied to clipboard

add barrier.abort (issue #8)

Open fkuo opened this issue 11 years ago • 2 comments

fkuo avatar Jan 29 '14 00:01 fkuo

Thanks for doing this! Can you add some tests, an example, and update README.md? My main question is what the expected behavior is when you start an operation on a barrier that's aborted? The example would help clarify that.

Also, is "drain" the right event for conveying the error?

CC'ing @jclulow, since he's interested in this.

davepacheco avatar Feb 04 '14 00:02 davepacheco

If there's a different event for conveying errors, e.g. "error", then it would be good to ensure that "drain" does not ever fire in the error case.

jclulow avatar Feb 04 '14 00:02 jclulow