| OLD | NEW |
| 1 part of dart.async; | 1 part of dart.async; |
| 2 typedef void _AsyncCallback(); | 2 typedef void _AsyncCallback(); |
| 3 class _AsyncCallbackEntry {final _AsyncCallback callback; | 3 class _AsyncCallbackEntry {final _AsyncCallback callback; |
| 4 _AsyncCallbackEntry next; | 4 _AsyncCallbackEntry next; |
| 5 _AsyncCallbackEntry(this.callback); | 5 _AsyncCallbackEntry(this.callback); |
| 6 } | 6 } |
| 7 _AsyncCallbackEntry _nextCallback; | 7 _AsyncCallbackEntry _nextCallback; |
| 8 _AsyncCallbackEntry _lastCallback; | 8 _AsyncCallbackEntry _lastCallback; |
| 9 _AsyncCallbackEntry _lastPriorityCallback; | 9 _AsyncCallbackEntry _lastPriorityCallback; |
| 10 bool _isInCallbackLoop = false; | 10 bool _isInCallbackLoop = false; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 entry.next = _lastPriorityCallback.next; | 55 entry.next = _lastPriorityCallback.next; |
| 56 _lastPriorityCallback.next = entry; | 56 _lastPriorityCallback.next = entry; |
| 57 _lastPriorityCallback = entry; | 57 _lastPriorityCallback = entry; |
| 58 if (entry.next == null) { | 58 if (entry.next == null) { |
| 59 _lastCallback = entry; | 59 _lastCallback = entry; |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 void scheduleMicrotask(void callback()) { | 63 void scheduleMicrotask(void callback()) { |
| 64 if (identical(_ROOT_ZONE, Zone.current)) { | 64 if (identical(_ROOT_ZONE, Zone.current)) { |
| 65 _rootScheduleMicrotask(null, null, DEVC$RT.cast(_ROOT_ZONE, dynamic, Zone, "Ca
stGeneral", """line 130, column 40 of dart:async/schedule_microtask.dart: """, _
ROOT_ZONE is Zone, true), callback); | 65 _rootScheduleMicrotask(null, null, _ROOT_ZONE, callback); |
| 66 return;} | 66 return;} |
| 67 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded:
true)); | 67 Zone.current.scheduleMicrotask(Zone.current.bindCallback(callback, runGuarded:
true)); |
| 68 } | 68 } |
| 69 class _AsyncRun {external static void _scheduleImmediate(void callback()); | 69 class _AsyncRun {external static void _scheduleImmediate(void callback()); |
| 70 } | 70 } |
| 71 typedef void __t36(); | 71 typedef void __t36(); |
| OLD | NEW |