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

Side by Side Diff: lib/src/backend/outstanding_callback_counter.dart

Issue 1580973002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/src/backend/operating_system.dart ('k') | lib/src/backend/platform_selector.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 test.backend.outstanding_callback_counter;
6
7 import 'dart:async'; 5 import 'dart:async';
8 6
9 /// A class that counts outstanding callbacks for a test and fires a future once 7 /// A class that counts outstanding callbacks for a test and fires a future once
10 /// they reach zero. 8 /// they reach zero.
11 /// 9 ///
12 /// The outstanding callback count automatically starts at 1. 10 /// The outstanding callback count automatically starts at 1.
13 class OutstandingCallbackCounter { 11 class OutstandingCallbackCounter {
14 /// The number of outstanding callbacks. 12 /// The number of outstanding callbacks.
15 var _count = 1; 13 var _count = 1;
16 14
(...skipping 16 matching lines...) Expand all
33 31
34 /// Removes all outstanding callbacks, forcing [noOutstandingCallbacks] to 32 /// Removes all outstanding callbacks, forcing [noOutstandingCallbacks] to
35 /// fire. 33 /// fire.
36 /// 34 ///
37 /// Future calls to [addOutstandingCallback] and [removeOutstandingCallback] 35 /// Future calls to [addOutstandingCallback] and [removeOutstandingCallback]
38 /// will be ignored. 36 /// will be ignored.
39 void removeAllOutstandingCallbacks() { 37 void removeAllOutstandingCallbacks() {
40 if (!_completer.isCompleted) _completer.complete(); 38 if (!_completer.isCompleted) _completer.complete();
41 } 39 }
42 } 40 }
OLDNEW
« no previous file with comments | « lib/src/backend/operating_system.dart ('k') | lib/src/backend/platform_selector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698