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 unittest.util.isolate_wrapper; | 5 library test.util.isolate_wrapper; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:isolate'; | 8 import 'dart:isolate'; |
9 | 9 |
10 import 'io.dart'; | 10 import 'io.dart'; |
11 | 11 |
12 // TODO(nweiz): Get rid of this when issue 6610 is fixed. | 12 // TODO(nweiz): Get rid of this when issue 6610 is fixed. |
13 /// This is a wrapper around an [Isolate] that supports a callback that will | 13 /// This is a wrapper around an [Isolate] that supports a callback that will |
14 /// fire when [Isolate.exit] is called. | 14 /// fire when [Isolate.exit] is called. |
15 /// | 15 /// |
(...skipping 23 matching lines...) Expand all Loading... |
39 void resume(Capability resumeCapability) => _inner.resume(resumeCapability); | 39 void resume(Capability resumeCapability) => _inner.resume(resumeCapability); |
40 void setErrorsFatal(bool errorsAreFatal) => | 40 void setErrorsFatal(bool errorsAreFatal) => |
41 _inner.setErrorsFatal(errorsAreFatal); | 41 _inner.setErrorsFatal(errorsAreFatal); |
42 String toString() => _inner.toString(); | 42 String toString() => _inner.toString(); |
43 | 43 |
44 void kill([int priority=Isolate.BEFORE_NEXT_EVENT]) { | 44 void kill([int priority=Isolate.BEFORE_NEXT_EVENT]) { |
45 if (supportsIsolateKill) _inner.kill(priority); | 45 if (supportsIsolateKill) _inner.kill(priority); |
46 _onExit(); | 46 _onExit(); |
47 } | 47 } |
48 } | 48 } |
OLD | NEW |