Function freya::prelude::use_future
pub fn use_future<F>(future: impl FnMut() -> F) -> UseFuturewhere
F: Future + 'static,
Expand description
A hook that allows you to spawn a future
Does not regenerate the future when dependencies change. If you’re looking for a future that does, check out
use_resource
instead.