a980fb1849
Fix all warnings/errors when running with --enable-experiment=non-nullable flag Change-Id: I7673aa34466273d623f7a429d96b0ccd6b612dae Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/139980 Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
24 lines
753 B
Dart
24 lines
753 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// VMOptions=--enable-isolate-groups
|
|
// VMOptions=--no-enable-isolate-groups
|
|
|
|
// Example of nested spawning of isolates from a URI
|
|
library NestedSpawnUriLibrary;
|
|
|
|
import 'dart:isolate';
|
|
import 'package:async_helper/async_minitest.dart';
|
|
|
|
main() {
|
|
test('isolate fromUri - nested send and reply', () {
|
|
ReceivePort port = new ReceivePort();
|
|
Isolate.spawnUri(Uri.parse('spawn_uri_nested_child1_vm_isolate.dart'), [], [
|
|
[1, 2],
|
|
port.sendPort
|
|
]);
|
|
port.first.then(expectAsync((result) => print(result)));
|
|
});
|
|
}
|