Burned by this issue for a whole day until I saw this thread: Why does thread::spawn need static lifetime for generic bounds?
sudison
6
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Callback in multithreaded code | 11 | 1374 | May 1, 2020 | |
| Lifetime problem when spawning a thread with arc mutex | 3 | 991 | August 13, 2021 | |
| Why does thread::spawn need static lifetime for generic bounds? | 8 | 25714 | July 21, 2022 | |
| Arc<T> requiring a lifetime for T. Why? | 6 | 1739 | January 3, 2023 | |
| [Solved] Why is a `'static` lifetime required here? Moving an owned variable into a thread | 8 | 2426 | January 12, 2023 |