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
Documentationhttps://ocsigen.org/lwt
MaintainersRaphaël Proust <code@bnwr.net> and Anton Bachin <antonbachin@yahoo.com>
Dependencies
Optional dependencies
Source [http] https://github.com/ocsigen/lwt/archive/refs/tags/6.1.3.tar.gz
md5=41506fecd8e8840c4eb848a212de7ebf
sha512=b00d615d145f8a08aeb5c69967f9d43c3b67b88a416e2c93b33ca95a75198254e8d707bc76443480ead28e6889bc604d5ecb17d2d02cd7dc2a1e60d497aa9c24
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lwt/lwt.6.1.3/opam
Required by