blob: 5c4d32eb426f956527293b6470b40ef631ac7072 [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 a.semenov@unipro.ru
import "dart:isolate";
main(List<String> args, SendPort sendPort) {
ReceivePort receivePort = new ReceivePort();
dynamic i = 1;
receivePort.listen((_) => "a" + i);
sendPort.send(receivePort.sendPort);
}