-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add Sync + Send to FunctionRelaxed #681
Conversation
34435db introduced `cannot be sent between threads safely` error.
Mmmh you could not have been using |
Yes, I didn't use
Discarding rayon with a |
Oh then it looks like the change made Context not sync/send anymore, that's unfortunate. |
Unfortunately, At the moment the only iron-clad measure would be to discriminate between the "classic" The 'big' solution coming to mind would be to abstract |
@CaptainSpof @Keats Should this get a new issue? New PR? |
Inheritance would be nice here :/ |
Of course it has to touch everything All the 'overhead' stays internal (unless a consumer opts in with At the moment I don't see any less complicated way to express all necessary constraints, keep the functionality of having non- |
Thanks @moschroe , your version works for my use case (I needed to add the The added verbosity is unfortunate, but at least I got it working. Feel free to close this PR and continue elsewhere. |
@moschroe please send a PR so I can review it better |
ping @moschroe , I'm going to yank the last version in the meantime. |
new PR in #688 @CaptainSpof using simply |
34435db introduced
cannot be sent between threads safely
error.Disclaimer I have no idea what I am doing, feel free to disregard this PR.
I've noticed a regression when upgrading to tera 1.13.0. The error was:
After some digging I identified 34435db responsible for the regression. Following the compiler advises, I've managed to "fix" the issue (as in, the code build and the tests are green)
Again, I'm still new to Rust and I haven't looked at what the code I modified do. So handle with care, I guess.
Might be related to #458