
Concurrency
Why Tokio Spawn Needs a Static Future and How to Cope
tokio::spawn demands a future that owns its data. Learn why the compiler asks for static, what it does and does not mean, and four ways to share data with a task.
7 min read
Tag
1 post

tokio::spawn demands a future that owns its data. Learn why the compiler asks for static, what it does and does not mean, and four ways to share data with a task.