pub trait Waitable {
type Output;
// Required method
fn wait(self) -> Self::Output
where Self: Sized;
}Expand description
The Waitable trait defines a method that is implemented for all
Future types. This allows you to call the .wait() method on any
Future outside of an async context.