Function tiny_actor::spawn_default
source · [−]pub fn spawn_default<T, R, Fun, Fut>(fun: Fun) -> (Child<R>, Address<T>) where
Fun: FnOnce(Inbox<T>) -> Fut + Send + 'static,
Fut: Future<Output = R> + Send + 'static,
R: Send + 'static,
T: Send + 'static, Expand description
spawn with Config::default.