Function tiny_actor::spawn_default_pooled
source · [−]pub fn spawn_default_pooled<T, R, I, Fun, Fut>(
iter: impl IntoIterator<Item = I>,
fun: Fun
) -> (ChildPool<R>, Address<T>) where
Fun: FnOnce(I, Inbox<T>) -> Fut + Send + 'static + Clone,
Fut: Future<Output = R> + Send + 'static,
R: Send + 'static,
T: Send + 'static,
I: Send + 'static, Expand description
spawn_pooled with Config::default.