The Future
trait represent a value that is not yet available.
It is defined as the following
pub trait Future {
type Output;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
}
Created: May 30, 2023Last Modified: Mar 14, 2024
The Future
trait represent a value that is not yet available.
It is defined as the following
pub trait Future {
type Output;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
}