dispose method

  1. @override
Future dispose()
override

Implementation

@override
Future dispose() async {
  if (!_isShuttingDown) {
    log.info("  - ${log.name} is shutting down now");
    await doShutdown();
    for (final shutdown in _onShutdown) {
      await shutdown();
    }
  } else {
    log.warning(
        "  - ${log.name} was already shutting down and we tried to shutdown again");
  }
}