← All repos

lwt

OCaml promises and concurrent I/O

asynchronousconcurencyeventsfibersfuturesiolwtocamlpromises
Browse cluster: OCaml Systems and Utilities
2,860commits
163contributors
5languages

Tech stack & purpose

Lwt is a concurrent programming library for OCaml that provides promises—values representing computations that will resolve in the future—as its core abstraction. The library is part of the Ocsigen project and handles asynchronous I/O by running blocking operations in parallel with OCaml code while keeping user-facing code single-threaded by default. Built in OCaml with Dune, Lwt includes a core promise library, Unix bindings via `Lwt_unix`, I/O channels through `Lwt_io`, subprocess handling via `Lwt_process`, a PPX syntax extension for ergonomic promise composition, and additional modules like `Lwt_react` for reactive programming and synchronization primitives such as mutexes and condition variables.

Community & reference links

Languages

OCaml
76.9%
C
22.6%
Python
0.2%
Dune
0.2%
Makefile
0.1%

Contributors (top 30 of 163)