def open.owner
import bend-kit-http@0.38.2.0/admission.bend as Admissionimport Base
270# The affine server owner joins this actual actor result after closing its listener.
271def open.owner(caps: Caps) -> IO(Chan(Command) & Chan(Counts)):
272 do IO<Chan(Command) & Chan(Counts)>:
273 +inbox : Chan(Command) <- Chan.new(Command, 0)
274 finished : Chan(Counts) <- IO.fork(Counts, loop(inbox, True{}, False{}, Waiting{ledger.open(caps)}))
275 return (inbox, finished)