I have an operation with delay:
mySingle.delaySubscription(60, TimeUnit.SECONDS).subscribe();
If for some reason after scheduling such a delay I want to perform an operation now, how can I do that?
What I see, I can get Disposable
from my subscribe()
, and, if I need to perform an operation now, dispose it and subscribe again without any delay. But it seems to me as quite rude way.
Is there more elegant way to do that?