def asked.failed

bend-kit-runner@0.13.0.1 · runner.bend:1361

import bend-kit-runner@0.13.0.1/runner.bend as Runner
import Base

1361# Sends the failure to the asker, and keeps it as the round's error.
1362def asked.failed(-A: Data, -X: Type, +rep: Chan(Out(X)), r: Runner<A>, +c: U32, +m: String, err: Out(Unit),
1363    next: Runner<A> -> Nat -> Out(Unit) -> IO(Runner<A> & Out(Bool))) -> IO(Runner<A> & Out(Bool)):
1364  do IO<Runner<A> & Out(Bool)>:
1365    x : Result<&1, &1, Out(X), Unit> <- Chan.send(Out(X), rep, Fail{(c, m)})
1366    next(r, 0n, first(err, Fail{(c, m)}))

Uses (15)

Used by (1)