-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Send
impl for Alpm
?
#42
Comments
For now, I have worked around this by tricking the compiler: https://github.com/fosskers/aura/blob/master/rust/r2d2-alpm/src/lib.rs#L35-L64 This works for my use cases. While indeed sharing a raw |
I did this like 3 years ago (been waiting to release V3 for a long time) so my memory is a bit fuzzy. I think I'd need to re reason if it's safe or not. I think it may be safe if the callbacks were also bounded by send. |
The error messages were complaining a lot about the callbacks, but also about the Experimentally at least it seems to be |
For now Aura is fixed with the workaround, so there's no rush (on my end) for |
Hi there. Between major versions 2 and 3, the
Alpm
type lost itsSend
implementation. This prevents it from being passed to other threads, even when wrapped in lock types like inArc<Mutex<Alpm>>
. Was this change intentional, or am I overlooking something?Thanks,
Colin
The text was updated successfully, but these errors were encountered: