def quiesce
import bend-kit-http@0.38.2.0/admission.bend as Admissionimport 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)