pub fn absurd_future<F, T>(future: F) -> AbsurdFuture<F, T> ⓘwhere
F: Future<Output = Infallible>,Expand description
Wraps a future that never returns and gives it an arbitrary output type.
This function makes it easier to create an AbsurdFuture.
§Type Parameters
F: The type of the inner future, which must returnInfallible.T: The desired output type for the wrapped future. This is often inferred.