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
Cannot send RedisFuture
between thread
#156
Comments
cc @Marwes - I don't know about the details (and have yet to use the async code). Is there any chance we can make |
It seems like I only fixed this in #143. Edit: Nvm, easier to just change it. |
@Marwes: Amazing. This is what I was missing. Needed to annotate |
This minimal example tries to execute a Redis command on a thread-pool (using the latest master)
It does not compile due to:
If I am not mistaken, this does not work, since
RedisFuture
is just a type alias toBox<Future<Item = T, Error = RedisError>>
(note: there is no+ Send
in the box). If I add the annotation, thenasync::Connection::read_response
does not compile. I did not follow the whole path, it looks like it boxes some types containingio::Read
which is not Send-able.I would love to look into this issue, but most likely I will need some support how to attack the problem. :)
The text was updated successfully, but these errors were encountered: