Struct scheduled_executor::executor::CoreExecutor [] [src]

pub struct CoreExecutor { /* fields omitted */ }

A CoreExecutor is the most simple executor provided. It runs a single thread, which is responsible for both scheduling the closure (registering the timer for the wakeup), and the actual execution of the closure. The executor will stop once dropped. The CoreExecutor can be cloned to generate a new reference to the same underlying executor.

Methods

impl CoreExecutor
[src]

Creates a new CoreExecutor.

Creates a new CoreExecutor with the specified thread name.

Schedule a function for running at fixed intervals. The executor will try to run the function every interval, but if one execution takes longer than interval it will delay all the subsequent calls.

Trait Implementations

impl Clone for CoreExecutor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl TaskGroupScheduler for CoreExecutor
[src]