1 2 3 4 5 6 7 8
open Abb_fut.Infix let main () = let p1 = Abb_fut.Promise.create () in ignore (Abb_fut.Promise.future p1 >>| (Printf.printf "Hi, %s\n")); Abb_fut.Promise.set p1 "You" let () = main ()
You can clone a snippet to your computer for local editing. Learn more.