No description
- Reason 95.1%
- Makefile 4.1%
- Dune 0.8%
The main loop is now exited by calling Repromise_lwt.stop() instead. Resolves #2. |
||
|---|---|---|
| src | ||
| test | ||
| .gitignore | ||
| dune-project | ||
| esy.json | ||
| esy.lock.json | ||
| Makefile | ||
| README.md | ||
| repromise_lwt.opam | ||
git clone https://github.com/aantron/repromise.git
git clone https://github.com/aantron/repromise_lwt.git
cd repromise
opam pin add -y repromise .
opam install -y lwt
cd ../repromise_lwt
dune exec test/test.exe
This should print Tick! five times, wait for one second, then print a few more messages. See test/test.re for the program.
The example creates a Repromise-aware sleep function by wrapping Lwt_unix.sleep, then exercises it a little bit.