pub trait Runtime: Clone + Send + Sync + Unpin + Debug {
    fn spawn<F>(&self, future: F)
    where
        F: 'static + Future<Output = ()> + Send
; }
Expand description

Runtime abstracts away the underlying runtime we use for task scheduling.

Required Methods

Spawn a Future to run as a task in some executor.

Implementors