def take
import bend-kit-http@0.38.2.0/admission.bend as Admissionimport Base
299def take(+inbox: Chan(Command), kind: U32) -> IO(Bool):
300 do IO<Bool>:
301 +reply : Chan(Bool) <- Chan.new(Bool, 1)
302 sent : Result<&1, &1, Command, Unit> <- Chan.send(Command, inbox, Acquire{kind, reply})
303 boolean.sent(sent, reply)