iced_futures::backend::native::thread_pool

Type Alias Executor

Source
pub type Executor = ThreadPool;
Available on non-WebAssembly and crate feature thread-pool only.
Expand description

A thread pool executor for futures.

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