Function wait_and_then

Source
pub fn wait_and_then<E, Fut, F, T, V: IntoView + 'static>(
    f: F,
    r: impl FnOnce(T) -> V + Send + 'static,
) -> impl IntoView
where Fut: Future<Output = Result<T, ServerFnError<E>>> + Send + 'static, F: Fn() -> Fut + Send + Sync + 'static, T: Send + Sync + Clone + 'static + Serialize + for<'de> Deserialize<'de>, E: Display + Clone + Serialize + for<'de> Deserialize<'de> + Send + Sync + 'static,