def admission.stream.take
import bend-kit-http@0.38.2.0/http.bend as Httpimport Base
import bend-kit-http@0.38.2.0/admission.bend as Admission
6624def admission.stream.take(needed: Bool, inbox: Chan(Admission.Command)) -> IO(Bool):
6625 match needed:
6626 case False{}:
6627 IO.pure(Bool, True{})
6628 case True{}:
6629 Admission.take(inbox, 1)