shutdown library

Enums

ShutdownType

Functions

addHandler(ShutdownHandler handler, {int? priority, Duration? timeout}) → void
shutdown({ShutdownType? type, int? exitCode, Duration handlerTimeout = const Duration(seconds: 30), Duration overallTimeout = const Duration(minutes: 5), bool? reverse}) Future
Executes the registered handler in (a) increasing priority order (unspecified priorities go to the end) and if that matches (b) in the order they were added.
triggerOnSigHup({int? exitCode, bool? reverse}) → void
triggerOnSigInt({int? exitCode, bool? reverse}) → void
triggerOnSigKill({int? exitCode, bool? reverse}) → void
triggerOnSignal(ProcessSignal signal, {int? exitCode, bool? reverse}) → void

Typedefs

ShutdownHandler = FutureOr Function()