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

Unified Diff: lib/src/result/capture_sink.dart

Issue 2996143002: Add methods to Result. Bump version to 2.0 and remove deprecated features. (Closed)
Patch Set: Address comments, run dartfmt on tests too. Created 3 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 | « lib/src/result.dart ('k') | lib/src/result/capture_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/result/capture_sink.dart
diff --git a/lib/src/result/capture_sink.dart b/lib/src/result/capture_sink.dart
index 74745251dc86c90662d3b71a72429e8694771ad0..c85b5532d544624a820ac5ca748d994c1645958e 100644
--- a/lib/src/result/capture_sink.dart
+++ b/lib/src/result/capture_sink.dart
@@ -4,12 +4,11 @@
import 'dart:async';
-import '../result.dart';
+import 'result.dart';
-/// Use [Result.captureSinkTransformer].
-@Deprecated("Will be removed in async 2.0.0.")
+/// Used by [Result.captureSink].
class CaptureSink<T> implements EventSink<T> {
- final EventSink _sink;
+ final EventSink<Result<T>> _sink;
CaptureSink(EventSink<Result<T>> sink) : _sink = sink;
« no previous file with comments | « lib/src/result.dart ('k') | lib/src/result/capture_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698