crossbeam
crossbeam copied to clipboard
future cannot be sent between threads safely the trait `std::marker::Sync` is not implemented for `dyn crossbeam::crossbeam_channel::internal::SelectHandle`
Please provide code to reproduce this.
This happens when you try to await a future inside a crossbeam::select!{} macro. The error is not so clear as no information is usually given, but it's easy to detect it by simply commenting out the code with await inside select!.
The situation of using crossbeam's select in async context seems odd to me: crossbeam's select blocks the current thread if all operations are not ready, which is basically bad behavior in async context.