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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/async_patch.dart

Issue 12380060: Add first version of runAsync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 9 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/lib/event_loop_patch.dart ('k') | sdk/lib/async/async.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/async_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/async_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/async_patch.dart
index ade4c9955cffabd6c993b61c16995070b429e3f8..7219f0883a08cd0d2002404a04a8d0f20ba4eddc 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/async_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/async_patch.dart
@@ -21,6 +21,13 @@ patch class Timer {
}
}
+patch class _AsyncRun {
+ patch static void _enqueueImmediate(void callback()) {
+ // TODO(9002): don't use the Timer to enqueue the immediate callback.
+ Timer.run(callback);
+ }
+}
+
patch class DeferredLibrary {
patch Future<bool> load() {
return _load(libraryName, uri);
« no previous file with comments | « runtime/lib/event_loop_patch.dart ('k') | sdk/lib/async/async.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698