def open.owner

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

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

Uses (15)

Used by (1)