Idris2Doc : IO.Async.Service

IO.Async.Service

(source)

Definitions

recordService : Type->ListType-> (req : Type) -> (req->Type) ->Type
  A `Service` describes an asynchronous, effectful convertion from
"requests" to (dependently typed) "responses" with the potential
of failing with one of the given error types.

A `Service` is a resource that should be properly released once it
is no longer needed.

Totality: total
Visibility: public export
Constructor: 
MkService : Asynce [] () -> ((r : req) ->Asynceerrs (respr)) ->Serviceeerrsreqresp

Projections:
.close : Serviceeerrsreqresp->Asynce [] ()
.send : Serviceeerrsreqresp-> (r : req) ->Asynceerrs (respr)

Hint: 
Resource (Asynce) (Serviceeesap)
.close : Serviceeerrsreqresp->Asynce [] ()
Totality: total
Visibility: public export
close : Serviceeerrsreqresp->Asynce [] ()
Totality: total
Visibility: public export
.send : Serviceeerrsreqresp-> (r : req) ->Asynceerrs (respr)
Totality: total
Visibility: public export
send : Serviceeerrsreqresp-> (r : req) ->Asynceerrs (respr)
Totality: total
Visibility: public export
service : {default100_ : Nat} -> (0p : (a->Type)) ->s-> (s-> (v : a) ->Asyncees (s, pv)) ->Asyncefs (Serviceeesap)
  Sets up a stateful service that runs continuously in the background
until it is finally closed.

Visibility: export
stateless : {default100_ : Nat} -> (0p : (a->Type)) -> ((v : a) ->Asyncees (pv)) ->Asyncefs (Serviceeesap)
  Sets up a stateless service that runs continuously in the background
until it is finally closed.

Visibility: export
stateful : {default100_ : Nat} -> (0p : (a->Type)) ->s-> (s-> (v : a) -> (s, pv)) ->Asyncefs (Serviceeesap)
  Sets up a stateful service that runs continuously in the background
until it is finally closed.

Visibility: export