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

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: Update documentation. 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 side-by-side diff with in-line comments
Download patch
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..c73dcc749dbf5c592689e2c9096d997cf68bfc71 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(floitsch): don't use the Timer to enqueue the immediate callback.
+ Timer.run(callback);
+ }
+}
+
patch class DeferredLibrary {
patch Future<bool> load() {
return _load(libraryName, uri);

Powered by Google App Engine
This is Rietveld 408576698