definy.rpc-respond
- description
- The RPC response in CBOR when cbor (the request was CBOR), otherwise as it is
- type
Fn(cbor: Boolean, io: @definy.service-io) -> @definy.service-io
- expression
fn(cbor$0, io$1) =>
match $0 {
false =>
$1,
true =>
@definy.io-bind(
A: @definy.service-outcome,
B: @definy.service-outcome,
io: $1,
f: fn(value$2) =>
#done<@definy.service-io>(@definy.outcome-as-cbor(outcome: $2))
)
}- visibility
- public
definy.rpc-respond (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: QYeCePstXyeifmiEDZA9ZPiWXODrouOl7YCuIBHFF48
content hash: _s51OUJJBaYW79_cBOOrYM_fIQr3Lv0piz0YDz3U7Ec