Skip to main content

tap_spawn

Function tap_spawn 

Source
pub fn tap_spawn<R, T, S, F, Fut>(side_effect: F, s: S) -> impl Stream<Item = T>
where R: Runtime, T: Clone + Send + 'static, S: Stream<Item = T>, F: Fn(T) -> Fut + Clone + Send + 'static, Fut: Future<Output = ()> + Send + 'static,
Expand description

For fire-and-forget async side effects using the Runtime trait.