MutexGuard is sync but not send, any way to send refernce to other thread of MutextGUard

MutexGuard is sync but not send mutex.rs - source
any way to send refernce to other thread of MutextGUard. try to write example but cannt compile?

You can use scoped threads

1 Like

parking_lot has a send_guard feature:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.