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

Side by Side Diff: lib/src/stream_queue.dart

Issue 1777453002: Modernize the package's style. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library async.stream_events;
6
7 import 'dart:async'; 5 import 'dart:async';
8 import 'dart:collection'; 6 import 'dart:collection';
9 7
10 import "subscription_stream.dart"; 8 import "subscription_stream.dart";
11 import "stream_completer.dart"; 9 import "stream_completer.dart";
12 import "../result.dart"; 10 import "../result.dart";
13 11
14 /// An asynchronous pull-based interface for accessing stream events. 12 /// An asynchronous pull-based interface for accessing stream events.
15 /// 13 ///
16 /// Wraps a stream and makes individual events available on request. 14 /// Wraps a stream and makes individual events available on request.
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 _completer.complete(true); 637 _completer.complete(true);
640 return true; 638 return true;
641 } 639 }
642 if (isDone) { 640 if (isDone) {
643 _completer.complete(false); 641 _completer.complete(false);
644 return true; 642 return true;
645 } 643 }
646 return false; 644 return false;
647 } 645 }
648 } 646 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698