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

Unified Diff: runtime/lib/event_loop_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/async_sources.gypi ('k') | sdk/lib/_internal/compiler/implementation/lib/async_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/event_loop_patch.dart
diff --git a/tests/language/private_selector_lib.dart b/runtime/lib/event_loop_patch.dart
similarity index 54%
copy from tests/language/private_selector_lib.dart
copy to runtime/lib/event_loop_patch.dart
index c9a11c9b34ac40a3d631ffec1f16b497757e62f8..c4b25b7b2c628ad9b9f5186b675819135e572e34 100644
--- a/tests/language/private_selector_lib.dart
+++ b/runtime/lib/event_loop_patch.dart
@@ -2,18 +2,9 @@
// 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.
-library private_selector_lib;
-
-import 'private_selector_test.dart';
-
-bool executed = false;
-
-class A {
- public() {
- new B()._private();
- }
-
- _private() {
- executed = true;
+patch class _AsyncRun {
+ /* patch */ static void _enqueueImmediate(void callback()) {
+ // TODO(9001): don't use the Timer to enqueue the immediate callback.
+ Timer.run(callback);
}
}
« no previous file with comments | « runtime/lib/async_sources.gypi ('k') | sdk/lib/_internal/compiler/implementation/lib/async_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698