shutdown method

FutureOr<void> shutdown()

Runs once in every isolate when the server stops, eg. to close database or Redis connections. It runs after the open requests are done (on SIGTERM, SIGINT or Dox().stop()). Optional.

Implementation

FutureOr<void> shutdown() {}