performHotRestart method

Future<void> performHotRestart()

This can throw an RPCError.

Implementation

Future<void> performHotRestart() async {
  isolateManager.hotRestartInProgress = true;
  try {
    await callServiceOnMainIsolate(hotRestartServiceName);
  } catch (_) {
    isolateManager.hotRestartInProgress = false;
  }
}