Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Unified Diff: sdk/lib/async/stream.dart

Issue 598993002: Add missing null-tests to async error functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/async/stream.dart
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
index 906476b88582cc398022675345765c7dd54ef383..d0b2f24272b8d61c89a606785d4bca011784da33 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -1380,7 +1380,7 @@ abstract class StreamSubscription<T> {
abstract class EventSink<T> implements Sink<T> {
/** Send a data event to a stream. */
void add(T event);
- /** Send an async error to a stream. */
+ /** Send an async error to a stream. The [errorEvent] must not be `null`. */
void addError(errorEvent, [StackTrace stackTrace]);
/** Send a done event to a stream.*/
void close();

Powered by Google App Engine
This is Rietveld 408576698