No description
  • Reason 95.1%
  • Makefile 4.1%
  • Dune 0.8%
Find a file
Anton Bachin 315a149c59 Remove ~until argument of Repromise_lwt.run
The main loop is now exited by calling Repromise_lwt.stop() instead.

Resolves #2.
2018-08-15 17:36:15 -05:00
src Remove ~until argument of Repromise_lwt.run 2018-08-15 17:36:15 -05:00
test Remove ~until argument of Repromise_lwt.run 2018-08-15 17:36:15 -05:00
.gitignore Add esy.json (#1) 2018-08-03 20:28:51 -05:00
dune-project Initial commit 2018-07-26 17:33:23 -05:00
esy.json Add esy.json (#1) 2018-08-03 20:28:51 -05:00
esy.lock.json Add esy.json (#1) 2018-08-03 20:28:51 -05:00
Makefile Remove ~until argument of Repromise_lwt.run 2018-08-15 17:36:15 -05:00
README.md Initial commit 2018-07-26 17:33:23 -05:00
repromise_lwt.opam Initial commit 2018-07-26 17:33:23 -05:00

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.