Advertisement
Guest User

Untitled

a guest
May 8th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.39 KB | None | 0 0
  1. [<EntryPoint>]
  2. let main argv =
  3.     Reactor.Loop.Start();
  4.     (* create a interval to tick every now and again. *)
  5.     let interval = Reactor.Interval.Create(fun () ->
  6.         printf "tick\n"
  7.     , 2000.0)
  8.  
  9.     (* testing *)
  10.     Reactor.Http.Server.Create(fun context ->
  11.         context.Response.Write("hello") |> ignore
  12.         context.Response.End() |> ignore
  13.     ).Listen(5000)
  14.     0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement