WorkerPool<T, R>
worker_pool WorkerPool<T, R>
Methods
map_array
pub fn map_array(self, array: [T]): [T] throws SendMessageError
Maps an array of values T
to R
using the worker pool.
map_array
pub fn map_array(self, array: [T]): [T] throws SendMessageError
Maps an array of values T
to R
using the worker pool.
Maps an array of values T
to R
using the worker pool.
map
pub fn map(self, value: T): T throws SendMessageError
Maps a value T
to R
using the worker pool.
map
pub fn map(self, value: T): T throws SendMessageError
Maps a value T
to R
using the worker pool.
Maps a value T
to R
using the worker pool.
num_workers
pub fn num_workers(self): int
Returns the number of threads in the worker pool.
num_workers
pub fn num_workers(self): int
Returns the number of threads in the worker pool.
Returns the number of threads in the worker pool.