blob: 06bc1328e67846de20cc760db9f938f5a1bad4ee [file] [log] [blame]
// Copyright (c) 2016, 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.
/// @author
import "dart:isolate";
import "dart:async";
import "IsolateUtil.dart";
main(List<String> args, SendPort sendPort) {
dynamic i = 1;
// this should awake the isolate from suspended state, caused by error
new Future.delayed(TWO_SECONDS).then(
(_) {
// An error that should stop the isolate
sendPort.send(", " + i);