How can I drain subscription created by dispatcher? #855
              
                Unanswered
              
          
                  
                    
                      ajax-semenov-y
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. What is the correct way to drain a subscription if a dispatcher created it?
For example, this is how I create a subscription:
Then, when I want to unsubscribe, I should do the following:
But how to drain a subscription?
There is no method like
dispatcher.drain(subscription).As far as I understand, all the difference between
subsctiption.unsubscribe()anddispatcher.unsubscribe(subsctiption)is that the second method has the following code:Which is not present in
subscription.drain()So how to drain a subscription correctly if Dispatcher created it?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions