def retry.after.ms
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-int@0.2.0.0/int.bend as Int
4483# ms clamped to 0 .. retry.cap().
4484def retry.after.ms(+ms: Int.I64) -> U32:
4485 Bool.pick(U32, Int.I64.is_neg(ms), 0,
4486 Bool.pick(U32, Int.I64.is_lt(ms, Int.I64.from_u32(retry.cap())), Int.I64.to_u32(ms), retry.cap()))