Guest User

Untitled

a guest
Feb 17th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.25 KB | None | 0 0
  1.     let timeout, send_timeout = E.create () in
  2.     let timeout_task =
  3.       lwt () = Lwt_unix.sleep timeout in
  4.       send_timeout `timeout;
  5.       return ()
  6.     in
  7.       E.select
  8.         [
  9.           data_event;
  10.           timeout
  11.         ]
Advertisement
Add Comment
Please, Sign In to add comment