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

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

Issue 1289203005: Add type to BroadcastSubscriptionWrapper. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream_impl.dart
diff --git a/sdk/lib/async/stream_impl.dart b/sdk/lib/async/stream_impl.dart
index c23b0f040f6924d75f1b922f150e1d3765b28d3c..c5481a3da442422f795f34da110c58dce77ba8c0 100644
--- a/sdk/lib/async/stream_impl.dart
+++ b/sdk/lib/async/stream_impl.dart
@@ -839,7 +839,8 @@ class _AsBroadcastStream<T> extends Stream<T> {
void _onCancel() {
bool shutdown = (_controller == null) || _controller.isClosed;
if (_onCancelHandler != null) {
- _zone.runUnary(_onCancelHandler, new _BroadcastSubscriptionWrapper(this));
+ _zone.runUnary(
+ _onCancelHandler, new _BroadcastSubscriptionWrapper<T>(this));
}
if (shutdown) {
if (_subscription != null) {
@@ -851,7 +852,8 @@ class _AsBroadcastStream<T> extends Stream<T> {
void _onListen() {
if (_onListenHandler != null) {
- _zone.runUnary(_onListenHandler, new _BroadcastSubscriptionWrapper(this));
+ _zone.runUnary(
+ _onListenHandler, new _BroadcastSubscriptionWrapper<T>(this));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698