readyToResume method

Future<Success> readyToResume(
  1. String isolateId
)

The readyToResume RPC indicates to DDS that the current client is ready to resume the isolate.

If the current client requires that approval be given before resuming an isolate, this method will:

  • Update the approval state for the isolate.
  • Resume the isolate if approval has been given by all clients which require approval.

Throws a SentinelException if the isolate no longer exists.

Implementation

Future<Success> readyToResume(String isolateId) async {
  if (!(await _versionCheck(2, 0))) {
    throw UnimplementedError('readyToResume requires DDS version 2.0');
  }
  return _callHelper<Success>(
    'readyToResume',
    isolateId: isolateId,
  );
}