shutdownTimeout property
Duration
get
shutdownTimeout
How long a shutdown waits for in-flight requests before giving up.
Keep this below the grace period of whatever supervises the process —
Kubernetes defaults to 30s before SIGKILL, and being killed part-way
through the drain defeats the point.
Implementation
Duration get shutdownTimeout => const Duration(seconds: 15);