Warning
This post was published 51 days ago. The information described in this article may have changed.
I've prepared the example.
I need to run some jobs within the struct's method in tokio::spawn but also I need to have mutable access to the struct. Without mutability it works well by means of Arc, but to have possibility to mutate the struct's object, I need to use Arc<Mutex and it breaks everything.
7 posts - 3 participants
🏷️ rust_feed