Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Direct style Picos
compatible interface to Lwt
with Lwt_unix
for OCaml 5.
val run_fiber : Picos.Fiber.t -> (Picos.Fiber.t -> unit) -> unit Lwt.t
val run : ?forbid:bool -> (unit -> 'a) -> 'a Lwt.t
run main
is equivalent to calling run_fiber
with a freshly created fiber and main
wrapped to capture the result of main
.
The optional forbid
argument defaults to false
and determines whether propagation of cancelation is initially allowed.
run_main main
is equivalent to Lwt_main.run (run main)
.