blob: e79e80f148c8cd3ecc5b35b35ec3052c7faf71c6 [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.
/// @assertion Isolate current
/// Return an Isolate object representing the current isolate.
/// The current isolate for code using current is the isolate running the code.
/// The isolate object provides the capabilities required to inspect, pause
/// or kill the isolate, and allows granting these capabilities to others.
/// It is possible to pause the current isolate, but doing so without first
/// passing the ability to resume it again to another isolate, is a sure way
/// to hang your program.
/// @description Check that current property is not null for default isolate
/// @author
import "dart:isolate";
import "../../../Utils/expect.dart";
main() {