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

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

Issue 14150002: Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 91eef61bf69374d6a53757c64cd93a0b1b4436d6..7507878ed333849854f32d9cf63a20110d086c68 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -836,16 +836,6 @@ abstract class StreamSubscription<T> {
/**
- * *Deprecated*. Use [EventSink] instead.
- */
-abstract class StreamSink<T> extends EventSink<T>{
- /* TODO(8997): Remove class.*/
- /** *Deprecated*. Use [EventSink.addError] instead.*/
- void signalError(AsyncError errorEvent) { addError(errorEvent); }
-}
-
-
-/**
* An interface that abstracts creation or handling of [Stream] events.
*/
abstract class EventSink<T> {
@@ -880,8 +870,7 @@ class StreamView<T> extends Stream<T> {
/**
* [EventSink] wrapper that only exposes the [EventSink] interface.
*/
-class EventSinkView<T> extends StreamSink<T> {
- // TODO(8997): Implment EventSink instead.
+class EventSinkView<T> extends EventSink<T> {
final EventSink<T> _sink;
EventSinkView(this._sink);
@@ -1140,8 +1129,7 @@ class _EventTransformStreamSubscription<S, T>
}
}
-/* TODO(8997): Implement EventSink instead, */
-class _EventOutputSinkWrapper<T> extends StreamSink<T> {
+class _EventOutputSinkWrapper<T> extends EventSink<T> {
_EventOutputSink _sink;
_EventOutputSinkWrapper(this._sink);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart ('k') | sdk/lib/async/stream_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698