lwtversion Documentation on ocaml.org

Promises and event-driven I/O

A promise is a value that may become determined in the future.

Lwt provides typed, composable promises. Promises that are resolved by I/O are resolved by Lwt in parallel.

Meanwhile, OCaml code, including code creating and waiting on promises, runs in a single thread by default. This reduces the need for locks or other synchronization primitives. Code can be run in parallel on an opt-in basis.

AuthorsJérôme Vouillon and Jérémie Dimino
LicenseMIT
Published
Homepagehttps://github.com/ocsigen/lwt
Issue Trackerhttps://github.com/ocsigen/lwt/issues
MaintainersRaphaël Proust <code@bnwr.net> and Anton Bachin <antonbachin@yahoo.com>
Availableopam-version >= "2.1.0"
Dependencies
Optional dependencies
Source [http] https://github.com/ocsigen/lwt/archive/refs/tags/6.0.0-beta01.tar.gz
md5=6bb978c590433a218a53722b985a01d4
sha512=529c8c920716cf204efd60a2bad3f817eed6eed120a8e8a8dae763ab7f4c45799a74004d0d0a2b8ec08f37c81b77f1a4813426a25f256b254dfa846c86debe44
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lwt/lwt.6.0.0-beta01/opam
Required by