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

Unified Diff: lib/src/future_group.dart

Issue 1220963002: Add an AsyncThunk class. (Closed) Base URL: git@github.com:dart-lang/async.git@master
Patch Set: Code review changes 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
Index: lib/src/future_group.dart
diff --git a/lib/src/future_group.dart b/lib/src/future_group.dart
index 81ba4fae78767787b172801b578ad7b94f0de079..7489c4d6e40191cf196a25c05ee3f73d8d38e1ca 100644
--- a/lib/src/future_group.dart
+++ b/lib/src/future_group.dart
@@ -22,6 +22,7 @@ import 'dart:async';
/// needing them all at once.
class FutureGroup<T> implements Sink<Future<T>> {
/// The number of futures that have yet to complete.
+ int get pending => _pending;
Lasse Reichstein Nielsen 2015/07/02 12:25:58 Unrelated change?
nweiz 2015/07/06 21:04:16 Done.
var _pending = 0;
/// Whether [close] has been called.
« lib/src/async_thunk.dart ('K') | « lib/src/async_thunk.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698