Module ScheduledFuture

module ScheduledFuture: sig .. end
Computations run in background with a delay.

type 'a t 
The type of futures, that are computations run in background with a delay.
val cancel : 'a t -> bool -> bool
Same as Future.cancel.
val get : 'a t -> 'a
Same as Future.get.
val get_time : 'a t -> int64 -> TimeUnit.t -> 'a
Same as Future.get_time.
val is_cancelled : 'a t -> bool
Same as Future.is_cancelled.
val is_done : 'a t -> bool
Same as Future.is_done.
val get_delay : 'a t -> TimeUnit.t -> int64
Returns the remaining delay for the computation, in the passed time unit.