def admission.stream.take
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
import bend-kit-http@0.38.5.0/admission.bend as Admission
6616def admission.stream.take(needed: Bool, inbox: Chan(Admission.Command)) -> IO(Bool):
6617 match needed:
6618 case False{}:
6619 IO.pure(Bool, True{})
6620 case True{}:
6621 Admission.take(inbox, 1)