commonware_runtime

Trait Runner

source
pub trait Runner {
    // Required method
    fn start<F>(self, f: F) -> F::Output
       where F: Future + Send + 'static,
             F::Output: Send + 'static;
}
Expand description

Interface that any task scheduler must implement to start running tasks.

Required Methods§

source

fn start<F>(self, f: F) -> F::Output
where F: Future + Send + 'static, F::Output: Send + 'static,

Start running a root task.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Runner for commonware_runtime::deterministic::Runner

source§

impl Runner for commonware_runtime::tokio::Runner