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/5.10.0.tar.gz
md5=dba3f8d8db1b9bed9f3a24385cc48e2b
sha512=6d25ebc6d011e75ff6ce6d1b0821be1aacbdebc2fbb26130edd43f20c0d1874bbcb6618003600fc80006a898434118795f691322a2455de11dfa23a868d6a110
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lwt/lwt.5.10.0/opam
Required by