Package com.tnsai.reliability
Interface ProgressSink.Subscription
- Enclosing interface:
ProgressSink
public static interface ProgressSink.Subscription
Handle returned from
ProgressSink.subscribe(java.lang.String, java.util.function.Consumer<com.tnsai.reliability.Progress>). Calling
cancel() removes the listener. The same handle may be
cancelled multiple times — second and subsequent calls are no-ops.-
Method Details
-
cancel
void cancel() -
isCancelled
boolean isCancelled()trueaftercancel(); useful for sanity checks.
-