W3cubDocs

/Dart 2

getIsolateID method

String getIsolateID (Isolate isolate)

Returns a String token representing the ID of isolate.

Returns null if the running Dart environment does not support the service protocol.

Implementation

static String getIsolateID(Isolate isolate) {
  ArgumentError.checkNotNull(isolate, 'isolate');
  return _getIsolateIDFromSendPort(isolate.controlPort);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-developer/Service/getIsolateID.html