| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library isolate; | 5 library isolate; |
| 6 | 6 |
| 7 import 'dart:fletch'; | 7 import 'dart:dartino'; |
| 8 | 8 |
| 9 class Isolate { | 9 class Isolate { |
| 10 final Channel _channel; | 10 final Channel _channel; |
| 11 bool _isJoined = false; | 11 bool _isJoined = false; |
| 12 | 12 |
| 13 Isolate._internal(this._channel); | 13 Isolate._internal(this._channel); |
| 14 | 14 |
| 15 /** | 15 /** |
| 16 * Join an isolate by waiting for the result of | 16 * Join an isolate by waiting for the result of |
| 17 * calling the spawned function. | 17 * calling the spawned function. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Used to distinguish between the result of executing an isolate and it's | 50 // Used to distinguish between the result of executing an isolate and it's |
| 51 // termination signal (we reuse the same Port at the moment). | 51 // termination signal (we reuse the same Port at the moment). |
| 52 class _IsolateResult { | 52 class _IsolateResult { |
| 53 final Object value; | 53 final Object value; |
| 54 | 54 |
| 55 const _IsolateResult(this.value); | 55 const _IsolateResult(this.value); |
| 56 } | 56 } |
| OLD | NEW |