def snapshot

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

import bend-kit-http@0.38.2.0/admission.bend as Admission
import Base

334# A successful rendezvous send was received: Stop cannot erase a queued request.
335# After controller closure a failed send returns None without waiting on its reply.
336def snapshot(+inbox: Chan(Command)) -> IO(Maybe<&2, Counts>):
337  do IO<Maybe<&2, Counts>>:
338    +reply : Chan(Counts) <- Chan.new(Counts, 1)
339    sent : Result<&1, &1, Command, Unit> <- Chan.send(Command, inbox, Snapshot{reply})
340    snapshot.sent(sent, reply)

Uses (11)

Used by (1)