def step.accepted

emerging-ezhttp@0.21.0.0 · src/step.bend:94

import emerging-ezhttp@0.21.0.0/src/step.bend as Step
import Base

94# an accept's outcome: ETIMEDOUT (110) is a deadline that passed
95def step.accepted(-A: Type, res: Result<&1, &1, U32 & String, A>)
96  -> Accept<A>:
97  match res:
98    case Fail{(+code, why)}:
99      step.missed(A, why, U32.is_eq(code, 110))
100    case Done{value}:
101      Took{value}

Uses (8)

Used by (1)