requestShutdown method

void requestShutdown()

Implementation

void requestShutdown() {
  final sendPort = _sendPort;
  if (sendPort == null) {
    throw StateError('Messenger is not attached to an worker');
  }

  sendPort.send(const AudioIsolateShutdownRequest());
}