gracefulShutdownSync function
Synchronous wrapper that kicks off graceful shutdown.
Implementation
void gracefulShutdownSync({
int exitCode = 0,
ExitReason reason = ExitReason.other,
}) {
exitCode = exitCode; // ignore: parameter_assignments
gracefulShutdown(exitCode: exitCode, reason: reason);
}