Skip to content

HandlerTimeout

[Source]

A validated handler timeout duration in milliseconds. The allowed range is 1 to 18,446,744,073,709 milliseconds (~213,503 days). The upper bound ensures the value can be safely converted to nanoseconds without overflowing U64.

Construct with MakeHandlerTimeout(milliseconds), which returns (HandlerTimeout | ValidationFailure). Pass to Server or Server.ssl to set the timeout, or pass None to disable it.

type HandlerTimeout is
  Constrained[U64 val, HandlerTimeoutValidator val] val

Type Alias For