shutdown method

Future<void> shutdown()

Shuts down the Serverpod and all associated servers.

Implementation

Future<void> shutdown() async {
  if (redisController != null) {
    await redisController!.stop();
  }
  server.shutdown();
  _serviceServer?.shutdown();
  _futureCallManager.stop();
  _healthCheckManager.stop;
  exit(0);
}