https://github.com/c-cube/containers-lwt
Utilities for Lwt
https://github.com/c-cube/containers-lwt
Last synced: 21 days ago
JSON representation
Utilities for Lwt
- Host: GitHub
- URL: https://github.com/c-cube/containers-lwt
- Owner: c-cube
- License: bsd-2-clause
- Created: 2015-09-16T14:45:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-22T20:06:21.000Z (about 10 years ago)
- Last Synced: 2026-03-30T09:43:35.692Z (about 1 month ago)
- Language: OCaml
- Size: 92.8 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Containers-lwt
Small suite of utilities for Lwt. BSD license.
**not released yet**
## Build
Depends on [lwt](https://github.com/ocsigen/lwt/) and
[containers](https://github.com/c-cube/ocaml-containers).
Use opam, for instance:
opam pin add -k git containers-lwt https://github.com/c-cube/containers-lwt.git
and
opam install containers-lwt
## Use
The library contains a pack module `Containers_lwt`, with the following modules:
- `Lwt_klist`: a lazy list of values compatible with `Lwt`. Resembles `Lwt_stream`
but with memoization, as a pure value.
- `Lwt_pipe`: a (bounded or unbounded) pipe between consumer(s) and producer(s)
with a focus on safety and efficiency. The point is that pushing
and poping can block, thus limiting the resource consumption
if producers are faster than consumers.
Less stable/usable:
- `Lwt_actor`: experimental simplistic actor library on top of `Lwt`
- `Lwt_automaton`: experimental automatons on top of `Lwt`