Created
June 21, 2016 20:43
-
-
Save hcarty/249aa920c9620893a1c30f31b1ab2f1f to your computer and use it in GitHub Desktop.
Test to see if Lwt.async calls before Lwt_main.run work as intended
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let () = | |
Lwt.async (fun () -> while%lwt true do Lwt_unix.sleep 1.0>> Lwt_io.printl "Hello" done); | |
Lwt_main.run @@ Lwt_unix.sleep 10.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment