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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Imported by deferred_class_test.dart. 5 patch class _AsyncRun {
6 6 /* patch */ static void _enqueueImmediate(void callback()) {
7 library deferred_class_library; 7 // TODO(floitsch): don't use the Timer to enqueue the immediate callback.
siva 2013/03/07 02:39:17 Can we have an issue number associated with this T
floitsch 2013/03/08 20:04:41 Done.
8 8 Timer.run(callback);
9 class MyClass {
10 const MyClass();
11
12 foo(x) {
13 print('MyClass.foo($x)');
14 return (x - 3) ~/ 2;
15 } 9 }
16 } 10 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698