public class AutoDisposeSingleThreadScheduler.Cancelable extends Object implements Runnable
AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit)
and can be used to cancel the task - best effort.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Attempt to cancel the Runnable that was submitted to
AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit) |
boolean |
isDone()
Is the Runnable that was submitted to
AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit) comleted? |
void |
run() |
public void cancel()
AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit)
public boolean isDone()
AutoDisposeSingleThreadScheduler.schedule(Runnable, long, TimeUnit)
comleted?Copyright © 2018. All rights reserved.