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

Unified Diff: lib/src/typed/stream.dart

Issue 2872233002: Make `TypeSafeStream` extend `Stream`. (Closed)
Patch Set: Created 3 years, 7 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/typed/stream.dart
diff --git a/lib/src/typed/stream.dart b/lib/src/typed/stream.dart
index 5b1f2ffbb1f775b22d00b184f28335e1966d71ce..a46711587ccf79333eaab3ba972f4b540a53c44a 100644
--- a/lib/src/typed/stream.dart
+++ b/lib/src/typed/stream.dart
@@ -10,7 +10,7 @@ import '../utils.dart';
import 'stream_subscription.dart';
import '../delegate/event_sink.dart';
-class TypeSafeStream<T> implements Stream<T> {
+class TypeSafeStream<T> extends Stream<T> {
floitsch 2017/05/16 09:01:18 should we add `groupBy` as an optimization?
final Stream _stream;
Future<T> get first async => (await _stream.first) as T;
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698