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

Unified Diff: runtime/lib/schedule_microtask_patch.dart

Issue 79243002: Implement scheduleImmediate for the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: runtime/lib/schedule_microtask_patch.dart
diff --git a/runtime/lib/schedule_microtask_patch.dart b/runtime/lib/schedule_microtask_patch.dart
index 75e87c8eb2fde52d0e0fa2e426e0a8478f0f2960..4ab593e05941abba9f783cfb11e2c762115d0fd4 100644
--- a/runtime/lib/schedule_microtask_patch.dart
+++ b/runtime/lib/schedule_microtask_patch.dart
@@ -2,24 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class _AsyncRun {
- /* patch */ static void _scheduleImmediate(void callback()) {
- if (_ScheduleImmediate._closure == null) {
- // TODO(9001): don't default to using the Timer to enqueue the immediate
- // callback.
- _createTimer(Duration.ZERO, callback);
- return;
- }
- _ScheduleImmediate._closure(callback);
- }
-}
-
-typedef void _ScheduleImmediateClosure(void callback());
-
-class _ScheduleImmediate {
- static _ScheduleImmediateClosure _closure;
-}
-
-void _setScheduleImmediateClosure(_ScheduleImmediateClosure closure) {
- _ScheduleImmediate._closure = closure;
+@deprecated
floitsch 2013/11/20 19:37:13 I need to update Dartium before I can remove this
+void _setScheduleImmediateClosure(ScheduleImmediateClosure closure) {
+ scheduleImmediateClosure = closure;
}

Powered by Google App Engine
This is Rietveld 408576698