Module Scheduler.Task

module Task: S  with type value := Task.t
Task scheduler.

Tasks can only be added. When a new task is submitted by the users, the task scheduler start managing it. A task can later be cancelled.


type t 
The type for schedulers.
type value 
The type of values which are scheduled.
val start : Store.t -> t Lwt.t
start s starts the event scheduler.
val stop : t -> unit Lwt.t
stop t stops the scheduler t.
val list : t -> value list
list t lists the values which are being scheduled.
val peek : t -> value option
peel t picks a value if it is available.
val peek_s : t -> value Lwt.t
peek_s t blocks until a value is available.