ShutdownHook typedef Null safety

Future<void> ShutdownHook (
  1. 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);