getIsolateID static method

  1. @Deprecated("Use getIsolateId instead")
String? getIsolateID(
  1. 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

@Deprecated("Use getIsolateId instead")
static String? getIsolateID(Isolate isolate) {
  // TODO: When NNBD is complete, delete the following line.
  ArgumentError.checkNotNull(isolate, 'isolate');
  return _getIsolateIdFromSendPort(isolate.controlPort);
}