News for hackers. Stuff that matters.
Re:Thread-per-core by weinzierl on Friday October 06, 2023 @12:06PM (#37792570)
Thanks! So does that mean that if I write my code with default tokio and ARC where required and then when I add flavor = "current_thread" I can replace my ARC with Rc?
Re:Thread-per-core by the_white_oak on Saturday October 07, 2023 @05:22PM (#37805691)
Rc is not Send.

But you can use tokio's LocalSet to run non-Send futures.

https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html