Command's listener won't know it's cancelled when cancelling a command. #2471
shrimptttttttttt
started this conversation in
General
Replies: 1 comment 1 reply
-
Any body can have a look at this? @wg |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm a 3.5.0.Final version lettuce user, Here is my question.
I dispatch a Command which has a listener, during some cases, I need to cancel the command. I expect the command's listener will know it's cancelled when it's notified. Tests show that, listener won't get the cancel status.
I think the problem is the Command extends AbstractFuture, Command doesn't override AbstractFuture's cancel method, but Command has implemented it's own 'isCancelled', which is separated.
It's high risky for me to upgrade lettuce version, so can you please help me calarify how should I fix this? Thanks a lot!!!
Beta Was this translation helpful? Give feedback.
All reactions