Warning · Api contract
Impact
With an unset event, a slow numeric conversion can consume the entire budget and still leave time for a request.
Recommended action
Capture the cancellable wait’s start time before validating `timeout` and compute the deadline from that sample.