Skip to main content

AsyncTask

Trait AsyncTask 

Source
pub trait AsyncTask<R>:
    Future<Output = R>
    + Send
    + 'static
where R: AsyncTaskResult,
{ }

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, R> AsyncTask<R> for T
where R: AsyncTaskResult, T: Future<Output = R> + Send + 'static,

Available on non-WebAssembly only.