Up

module Lwt_js

: sig

Javascript specific Lwt functions.

#
val sleep : float -> unit Lwt.t

sleep d is a threads which remain suspended for d seconds and then terminates.

#
val yield : unit -> unit Lwt.t

yield () is a threads which suspends itself and then resumes as soon as possible and terminates.

end