package opium_kernel

  1. Overview
  2. Docs

A service is simply a function that returns its result asynchronously

A service is simply a function that returns its result asynchronously

type ('req, 'rep) t = 'req -> 'rep Lwt.t
include Sexplib0.Sexpable.S2 with type ('req, 'rep) t := ('req, 'rep) t
val t_of_sexp : (Sexplib0__.Sexp.t -> 'a) -> (Sexplib0__.Sexp.t -> 'b) -> Sexplib0__.Sexp.t -> ('a, 'b) t
val sexp_of_t : ('a -> Sexplib0__.Sexp.t) -> ('b -> Sexplib0__.Sexp.t) -> ('a, 'b) t -> Sexplib0__.Sexp.t
val id : ('a, 'a) t
val const : 'rep -> (_, 'rep) t
OCaml

Innovation. Community. Security.