Struct scheduled_executor::executor::ThreadPoolExecutor [] [src]

pub struct ThreadPoolExecutor { /* fields omitted */ }

A ThreadPoolExecutor will use one thread for the task scheduling and a thread pool for task execution, allowing multiple tasks to run in parallel.

Methods

impl ThreadPoolExecutor
[src]

Creates a new ThreadPoolExecutor with the specified number of threads. Threads will be named "pool_thread_0", "pool_thread_1" and so on.

Creates a new ThreadPoolExecutor with the specified number of threads and prefix for the thread names.

Creates a new ThreadPoolExecutor with the specified number of threads, prefix and using the given CoreExecutor for scheduling.

Schedules the given function to be executed every interval. The function will be scheduled on one of the threads in the thread pool.

Returns the thread pool used internally.

Trait Implementations

impl Clone for ThreadPoolExecutor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl TaskGroupScheduler for ThreadPoolExecutor
[src]