ShutdownHook typedef Null safety

ShutdownHook = Future<void> Function(Nyxx client)

Hook executed when disposing bots process.

Executed most likely when process receives SIGINT (*nix) or SIGTERM (*nix and windows). Not guaranteed to be completed or executed at all.

Implementation

typedef ShutdownHook = Future<void> Function(Nyxx client);