You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a common issue with oneshot channels in various crates, even though technically some of the time it should be fine for them to impl Sync (since oneshot operations are usually by-value, meaning that self by-reference methods are unusable).
You can usually work around it by just wrapping the oneshot in a Mutex and then unwrapping with Mutex::into_inner at the send invocation site.
I have a scenario like this
But I got
error[E0277]:
*mut kanal::oneshot::OneshotInternal<()>
cannot be shared between threads safelyThe text was updated successfully, but these errors were encountered: