Module Scheduler.Worker

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

Workers can be added and can become inactive. The worker scheduler manage new workers, keep track of idle workers and remove inactive workers.


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.