kill method

Future<Success> kill(
  1. String isolateId
)

The kill RPC is used to kill an isolate as if by dart:isolate's Isolate.kill(IMMEDIATE).

The isolate is killed regardless of whether it is paused or running.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See Success.

This method will throw a SentinelException in the case a Sentinel is returned.

Implementation

Future<Success> kill(String isolateId) =>
    _call('kill', {'isolateId': isolateId});