iced_futures::backend::native::tokio

Type Alias Executor

source
pub type Executor = Runtime;
Expand description

A tokio executor.

Aliased Type§

struct Executor { /* private fields */ }

Trait Implementations§

source§

impl Executor for Executor

source§

fn new() -> Result<Self, Error>

Creates a new Executor.
source§

fn spawn(&self, future: impl Future<Output = ()> + Send + 'static)

Spawns a future in the Executor.
source§

fn enter<R>(&self, f: impl FnOnce() -> R) -> R

Runs the given closure inside the Executor. Read more