3 ms·
> Spawning multiple tasks requires that each task be 'static, which means they cannot borrow data from their parent task Is this just tokio thing? For example
by zokier 3y ago
> Spawning multiple tasks requires that each task be 'static, which means they cannot borrow data from their parent task
Is this just tokio thing? For example https://docs.rs/async-executor/latest/async_executor/struct.LocalExecutor.html#method.spawn https://docs.rs/async-executor/latest/async_executor/struct.... does not have 'static in the signature, but I'm not nearly familiar with the topic to understand fully all the details
- vacuity 3y agoApparently that's a thread-local executor (scroll up to the top of the page).