of

fun of(environment: Environment): GracefulShutdownBound

The bound of environment's node: its wow.wait.max-timeout and MARGIN, or the timeout per shutdown phase the application sets when that is shorter.