| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 import 'dart:fletch._system' as fletch; | 5 import 'dart:fletch._system' as fletch; |
| 6 import 'dart:fletch._system' show patch; | 6 import 'dart:fletch._system' show patch; |
| 7 import 'dart:fletch'; | 7 import 'dart:fletch'; |
| 8 import 'dart:fletch.os' as os; | 8 import 'dart:fletch.os' as os; |
| 9 import 'dart:math'; | 9 import 'dart:math'; |
| 10 | 10 |
| 11 Channel _eventQueue; | 11 Channel _eventQueue; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 int milliseconds = max(0, duration.inMilliseconds); | 111 int milliseconds = max(0, duration.inMilliseconds); |
| 112 return new _FletchTimer.periodic(_currentTimestamp + milliseconds, | 112 return new _FletchTimer.periodic(_currentTimestamp + milliseconds, |
| 113 callback, | 113 callback, |
| 114 milliseconds); | 114 milliseconds); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 @patch void _rethrow(Object error, StackTrace stackTrace) { | 118 @patch void _rethrow(Object error, StackTrace stackTrace) { |
| 119 throw new AsyncError(error, stackTrace); | 119 throw new AsyncError(error, stackTrace); |
| 120 } | 120 } |
| OLD | NEW |