recoverWorker method

Future<void> recoverWorker()

Disposes the current worker and re-initializes a fresh one.

All previous connection IDs are invalid after this. Callers must reconnect. Use when autoRecoverOnWorkerCrash is true and the worker has crashed.

Implementation

Future<void> recoverWorker() async {
  await _runSingleRecovery(_recoverWorkerInternal);
}