def quiesce

bend-kit-http@0.38.2.0 · admission.bend:286

import bend-kit-http@0.38.2.0/admission.bend as Admission
import Base

286# False also covers copied controls used after actual controller closure.
287def quiesce(+inbox: Chan(Command)) -> IO(Bool):
288  do IO<Bool>:
289    +reply : Chan(Bool) <- Chan.new(Bool, 1)
290    sent : Result<&1, &1, Command, Unit> <- Chan.send(Command, inbox, Quiesce{reply})
291    boolean.sent(sent, reply)

Uses (10)

Used by (2)