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

Unified Diff: sdk/lib/_internal/pub/lib/src/utils.dart

Issue 19494012: Report correct socket error and use HttpServer:close future in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/utils.dart
diff --git a/sdk/lib/_internal/pub/lib/src/utils.dart b/sdk/lib/_internal/pub/lib/src/utils.dart
index d3ea1b609b83e320888561f90dcaeac3808142d9..988d8d0c7dfbdc039d092a52ab618bcc80f11205 100644
--- a/sdk/lib/_internal/pub/lib/src/utils.dart
+++ b/sdk/lib/_internal/pub/lib/src/utils.dart
@@ -149,13 +149,6 @@ String sha1(String source) {
return CryptoUtils.bytesToHex(sha.close());
}
-/// Returns a [Future] that completes in [milliseconds].
-Future sleep(int milliseconds) {
- var completer = new Completer();
- new Timer(new Duration(milliseconds: milliseconds), completer.complete);
- return completer.future;
-}
-
/// Configures [future] so that its result (success or exception) is passed on
/// to [completer].
void chainToCompleter(Future future, Completer completer) {
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698