blob: 33a7181814eee411d420336672dc4c6e65e5b7df [file] [log] [blame]
* Copyright (c) 2017, 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.
* @assertion void resume(
* Capability resumeCapability
* )
* Resumes a paused isolate.
* ...
* The capability must be one returned by a call to pause on this isolate,
* otherwise the resume call does nothing.
* @description Check that resume(null) does nothing on isolate that is
* not paused
* @author
import "dart:isolate";
import "../../../Utils/expect.dart";
import "IsolateUtil.dart";
test() async {
ReceivePort receivePort = new ReceivePort();
EchoServer server = await EchoServer.spawn(receivePort.sendPort);
Expect.equals("hello", await"hello"));
Expect.equals("resume", await"resume"));
Expect.equals("server", await"server"));
await server.stop();
main() {