Results for “Std.Concurrent.Pool.Pool”
7 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Concurrent.Pool.Pool
A fixed set of workers draining a bounded queue.
- Std.Concurrent.Pool.pool
Int -> Int -> Result[Std.Concurrent.Pool.Pool, Std.Concurrent.ConcurrentError]A pool of
workersthreads over a queue holding at mostqueuejobs. - Std.Concurrent.Pool.queued
&Std.Concurrent.Pool.Pool -> Result[Int, Std.Concurrent.ConcurrentError]How many jobs are waiting for a worker.
- Std.Concurrent.Pool.shutdown
&Std.Concurrent.Pool.Pool -> Result[(), Std.Concurrent.ConcurrentError]Refuse further jobs, run every queued one, and join every worker. Answers
- Std.Concurrent.Pool.size
&Std.Concurrent.Pool.Pool -> IntHow many workers the pool runs.
- Std.Concurrent.Pool.submit
&Std.Concurrent.Pool.Pool -> fn() -> () -> Result[(), Std.Concurrent.ConcurrentError]Queue a job, waiting while the queue is full. A crash in the job is
- Std.Concurrent.Pool.submitFor
&Std.Concurrent.Pool.Pool -> fn() -> T -> Result[Std.Concurrent.Future.Future[T], Std.Concurrent.ConcurrentError]Queue a job and answer the future of its value; a crash settles the
