Function dioxus_hooks::use_callback
source · pub fn use_callback<T, R, F>(
cx: &ScopeState,
make: impl FnOnce() -> R
) -> impl FnMut(T) + '_where
R: FnMut(T) -> F + 'static,
F: Future<Output = ()> + 'static,
pub fn use_callback<T, R, F>(
cx: &ScopeState,
make: impl FnOnce() -> R
) -> impl FnMut(T) + '_where
R: FnMut(T) -> F + 'static,
F: Future<Output = ()> + 'static,