package picos_lwt

  1. Overview
  2. Docs
Lwt interface for Picos

Install

Dune Dependency

Authors

Maintainers

Sources

picos-0.5.0.tbz
sha256=862d61383e2df93a876bedcffb1fd1ddc0f96c50b0e9c07943a2aee1f0e182be
sha512=87805379017ef4a7f2c11b954625a3757a0f1431bb9ba59132202de278b3e41adbe0cdc20e3ab23b7c9a8c5a15faeb7ec79348e7d80f2b14274b00df0893b8c0

doc/picos_lwt.unix/Picos_lwt_unix/index.html

Module Picos_lwt_unixSource

Direct style Picos compatible interface to Lwt with Lwt_unix for OCaml 5.

Sourceval run_fiber : Picos.Fiber.t -> (Picos.Fiber.t -> unit) -> unit Lwt.t

run_fiber fiber main runs the main program as the specified fiber as a promise with Lwt as the scheduler using a Lwt_unix based System module. In other words, the main program will be run as a Lwt promise or fiber.

⚠️ This may only be called on the main thread on which Lwt runs.

Sourceval 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.

OCaml

Innovation. Community. Security.