Chromium Code Reviews
DescriptionMake errors from StreamController onCancel calls end up in the returned future.
This changes errors happening in an onCancel callback from being uncaught
async errors (captured by zone.runGuarded) to being put into the result
future every time.
It already happens if the onCancel returns a future containing an error,
but if onCancel throws itself, it was different. This makes onCancel
act the same whether it fails immediately or asynchronously.
It should not change the behavior of current working programs:
an uncaught error would likely terminate the program, and the returned
futures are not checked for errors.
After the change, the error will reach the future and become uncaught there
instead, still terminating the program in the same way.
R=ajohnsen@google.com, floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=36021
Patch Set 1 #
Total comments: 4
Patch Set 2 : Add tests. Propagate errors during cancel only to cancel future. #
Total comments: 5
Patch Set 3 : Address comments. #
Messages
Total messages: 10 (0 generated)
|
|||||||||||||||||||||||||||||||||||||