def take

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

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

Uses (11)

Used by (5)