def close
import bend-kit-http@0.38.2.0/admission.bend as Admissionimport Base
342# Retire accounting after listener closure; quiesce is the separate admission
343# cutover. Finite internal fixtures may finish their already-accepted protocol.
344def close(inbox: Chan(Command)) -> IO(Unit):
345 do IO<Unit>:
346 sent : Result<&1, &1, Command, Unit> <- Chan.send(Command, inbox, Stop{})
347 return Unit{}