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>
Dependencies
Optional dependencies
Source [http] https://github.com/ocsigen/lwt/archive/refs/tags/6.0.0.tar.gz
md5=8bfdd7b36a40fc715c48b3a9edccf324
sha512=6d2f4866e06601f9e7e43ac6378f05a3ea915c94548d5a6c96e2fb2adc2c6cff233ffa56862ca7be809c2d2114ed9335c22fb7d768adf7fae5460bb52de3f938
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/lwt/lwt.6.0.0/opam
Required by