pub trait Executor {
// Required method
fn execute(
&self,
fut: Pin<Box<dyn Future<Output = ()> + 'static>>,
) -> Pin<Box<dyn Future<Output = ()> + 'static>>;
}Expand description
An executor for futures.
This trait allows deno_graph to run background tasks on the async executor.
Required Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".