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

Side by Side Diff: pkg/oauth2/lib/src/utils.dart

Issue 12224081: Change Future.delayed to take a Duration. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments and made argument optional. Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/async/future.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 utils; 5 library utils;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:uri'; 8 import 'dart:uri';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:crypto'; 10 import 'dart:crypto';
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 if (!paramString.trim().isEmpty) { 107 if (!paramString.trim().isEmpty) {
108 throw new FormatException('Invalid WWW-Authenticate header: "$header"'); 108 throw new FormatException('Invalid WWW-Authenticate header: "$header"');
109 } 109 }
110 110
111 return new AuthenticateHeader(scheme, parameters); 111 return new AuthenticateHeader(scheme, parameters);
112 } 112 }
113 } 113 }
114 114
115 /// Returns a [Future] that asynchronously completes to `null`. 115 /// Returns a [Future] that asynchronously completes to `null`.
116 Future get async => new Future.delayed(0, () => null); 116 Future get async => new Future.delayed(const Duration(milliseconds: 0),
117 () => null);
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/async/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698