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

Unified Diff: lib/src/utils.dart

Issue 1308163004: Async-ify. (Closed) Base URL: git@github.com:dart-lang/oauth2.git@master
Patch Set: Created 5 years, 4 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/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 12a429e198a6a48af11722fed650eb33a04cb989..b29262580a6d7500767572366e2cb0484d940ac6 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -105,7 +105,3 @@ class AuthenticateHeader {
return new AuthenticateHeader(scheme, parameters);
}
}
-
-/// Returns a [Future] that asynchronously completes to `null`.
-Future get async => new Future.delayed(const Duration(milliseconds: 0),
- () => null);

Powered by Google App Engine
This is Rietveld 408576698