Skip to content

Instantly share code, notes, and snippets.

@hcarty
Created June 21, 2016 20:43
Show Gist options
  • Save hcarty/249aa920c9620893a1c30f31b1ab2f1f to your computer and use it in GitHub Desktop.
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
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