Chromium Code Reviews| Index: sdk/lib/io/timer_impl.dart |
| diff --git a/sdk/lib/io/timer_impl.dart b/sdk/lib/io/timer_impl.dart |
| index 4939a629bd0b6a1f67c0c5371dc7166489063e9e..cd6fc0fcfbb20bafacbd1ee89aa10f7efe40a196 100644 |
| --- a/sdk/lib/io/timer_impl.dart |
| +++ b/sdk/lib/io/timer_impl.dart |
| @@ -11,7 +11,7 @@ class _Timer extends LinkedListEntry<_Timer> implements Timer { |
| // Timers are ordered by wakeup time. |
| static LinkedList<_Timer> _timers = new LinkedList<_Timer>(); |
| - static ReceivePort _receivePort; |
| + static RawReceivePort _receivePort; |
| static bool _handling_callbacks = false; |
| Function _callback; |
| @@ -163,10 +163,7 @@ class _Timer extends LinkedListEntry<_Timer> implements Timer { |
| } |
| if(_receivePort == null) { |
| - _receivePort = new ReceivePort(); |
| - _receivePort.receive((var message, ignored) { |
| - _handleTimeout(); |
| - }); |
| + _receivePort = new RawReceivePort((message) { _handleTimeout(); }); |
|
Anders Johnsen
2013/10/24 17:33:41
(_) => _handleTimeout()
floitsch
2013/10/24 21:03:52
Done.
|
| } |
| } |