Timeouts that cancel
Bound how long any async work may take. Work past its deadline is cancelled with a reason, and calls that ignore cancellation are abandoned and counted.
try await withTimeout(.seconds(2)) { … }Guide: Time →Pl. II · Time among the statues