module type S =sig..end
type t
type item
val create : int -> tcreate n create a worker pool with n initial workers.val set_size : t -> int -> unitset_size pool n sets the worker pool size to n.val push : t -> string -> item -> unitpush pool tag item pushes item at the end of queue for pool.
Items with the same tag are serialised, but items with different tags
can be executed in parallel if enough workers are available.
tags get scheduled in a round-robin fashion.
You need to start some workers, otherwise none of the items get executed.
val dump : t list -> Rpc.t * Rpc.tdump pool dumps diagnostic information about the pool