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]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns the thread pool used internally.

Trait Implementations

impl Clone for ThreadPoolExecutor
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl TaskGroupScheduler for ThreadPoolExecutor
[src]

[src]