Explorer

definy.sync-local

description
Run an RPC handler of this server and pass its JSON response on
type
Fn(
  io: @definy.service-io,
  then: Fn(result: Union{#ok(@definy.json), #error(String)}) -> @definy.service-io
) -> @definy.service-io
expression
fn(io$0, then$1) =>
  @definy.service-io-then-respond(
    io: $0,
    respond: fn(response$2) =>
      $1(result: @definy.sync-response-json(response: $2))
  )
visibility
public
definy.sync-local (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: B8B4-ydxjXjkYpzGH4oiQLAbbATBkKw6D7hBMYgGk2I
content hash: muz2o2NedXbvPs_VovXOL4_2gZB1wFmuGKi3WcLQzXU