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

Unified Diff: lib/src/stream_queue.dart

Issue 1215873004: Fix type errors caught by analyzer. (Closed) Base URL: https://github.com/dart-lang/async@master
Patch Set: Created 5 years, 6 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: lib/src/stream_queue.dart
diff --git a/lib/src/stream_queue.dart b/lib/src/stream_queue.dart
index 5255b044e810b6e9fd2a1f5a2efd8a090d337163..0018710b90a313b5b9042d9bd8280db14ddc85b5 100644
--- a/lib/src/stream_queue.dart
+++ b/lib/src/stream_queue.dart
@@ -286,7 +286,7 @@ class StreamQueue<T> {
/// Ensures that we are listening on events from [_sourceStream].
///
/// Resumes subscription on [_sourceStream], or creates it if necessary.
- StreamSubscription _ensureListening() {
+ void _ensureListening() {
assert(!_isDone);
if (_subscription == null) {
_subscription =
@@ -354,7 +354,7 @@ class StreamQueue<T> {
///
/// The [close] method is also called immediately when the source stream
/// is done.
-abstract class _EventRequest implements EventSink {
+abstract class _EventRequest {
/// Handle available events.
///
/// The available events are provided as a queue. The `addEvents` function
@@ -471,7 +471,7 @@ class _TakeRequest<T> implements _EventRequest {
/// The future completed when the correct number of events have been captured.
Future get future => _completer.future;
- bool addEvents(Queue<Events> events) {
+ bool addEvents(Queue<Result> events) {
while (_list.length < _eventsToTake) {
if (events.isEmpty) return false;
var result = events.removeFirst();
@@ -485,7 +485,7 @@ class _TakeRequest<T> implements _EventRequest {
return true;
}
- void close(Queue<Events> events) {
+ void close(Queue<Result> events) {
_completer.complete(_list);
}
}
« 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