Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'dart:isolate'; | |
| 6 | |
| 7 // This test ensures that the VM can kill the spawned isolate during VM | |
| 8 // shutdown even when the isolate is in an infinite loop and will not finish | |
| 9 // on its own. | |
| 10 | |
| 11 void loop(msg) { | |
| 12 while (true) {} | |
|
Ivan Posva
2015/09/14 21:52:13
How do you ensure that the spawned isolate has act
zra
2015/09/14 22:59:00
There's no check for that here. This is mostly a s
| |
| 13 throw "Unreachable"; | |
| 14 } | |
| 15 | |
| 16 void main() { | |
| 17 Isolate.spawn(loop, []); | |
| 18 } | |
| OLD | NEW |