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

Side by Side Diff: runtime/lib/schedule_microtask_patch.dart

Issue 88783002: Isolate.spawn{Uri} only reports errors asynchronously. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js. Created 7 years 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 patch class _AsyncRun { 5 @deprecated
Lasse Reichstein Nielsen 2013/11/27 11:41:28 Why deprecate this and add another? Can we just ke
floitsch 2013/11/27 13:57:06 No. This one is not in _collection-dev. The only r
6 /* patch */ static void _scheduleImmediate(void callback()) { 6 class _ScheduleImmediate {
7 if (_ScheduleImmediate._closure == null) { 7 static set _closure(closure) {
8 // TODO(9001): don't default to using the Timer to enqueue the immediate 8 scheduleImmediateClosure = closure;
9 // callback.
10 _createTimer(Duration.ZERO, callback);
11 return;
12 }
13 _ScheduleImmediate._closure(callback);
14 } 9 }
15 } 10 }
16
17 typedef void _ScheduleImmediateClosure(void callback());
18
19 class _ScheduleImmediate {
20 static _ScheduleImmediateClosure _closure;
21 }
22
23 void _setScheduleImmediateClosure(_ScheduleImmediateClosure closure) {
24 _ScheduleImmediate._closure = closure;
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698