Index: sdk/lib/async/stream.dart |
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart |
index c2b6c68984ad5dde9097cc28cd5247060e89d2a4..02d49c48e898bf1a8f021af3322fd8754717ed99 100644 |
--- a/sdk/lib/async/stream.dart |
+++ b/sdk/lib/async/stream.dart |
@@ -325,6 +325,8 @@ abstract class Stream<T> { |
* two arguments it is called with the stack trace (which could be `null` if |
* the stream itself received an error without stack trace). |
* Otherwise it is called with just the error object. |
+ * If [onError] is omitted, any errors on the stream are considered unhandled, |
+ * and will be passed to the current [Zone]'s error handler. |
floitsch
2016/01/20 13:34:57
Maybe add: By default, unhandled errors are hence
Lasse Reichstein Nielsen
2016/01/21 07:29:08
Something similar to that added.
|
* |
* If this stream closes, the [onDone] handler is called. |
* |