@Deprecated public void start(Runnable onCompleted) throws Exception { start(new TaskWrapper(onCompleted)); } @Deprecated
@Deprecated public void stop(final Runnable onCompleted) { stop(new TaskWrapper(onCompleted)); } public void stop(Task onCompleted) {
@Deprecated public void start(Runnable onCompleted) throws Exception { start(new TaskWrapper(onCompleted)); } @Deprecated
@Deprecated() public void executeAfter(long delay, TimeUnit unit, Runnable runnable) { this.executeAfter(delay, unit, new TaskWrapper(runnable)); }
@Deprecated public void start(final Runnable onCompleted) { start(new TaskWrapper(onCompleted)); } public void start(final Task onCompleted) {
@Deprecated public void stop(Runnable onCompleted) throws Exception { stop(new TaskWrapper(onCompleted)); }
@Deprecated public void setEventHandler(Runnable handler) { this.setEventHandler(new TaskWrapper(handler)); }
@Deprecated public void execute(final Runnable runnable) { execute(new TaskWrapper(runnable)); }
@Deprecated public void execute(final Runnable runnable) { execute(new TaskWrapper(runnable)); }
final public void start(final Runnable onCompleted) { start(new TaskWrapper(onCompleted)); }
/** * <p> * Adds a disposer runnable that is executed once the object is disposed. * </p><p> * A dispatch object's disposer runnable will be invoked on the object's target queue * once the object's retain counter reaches zero. This disposer may be * used by the application to release any resources associated with the object. * </p> * * @param disposer */ final public void setDisposer(final Runnable disposer) { this.setDisposer(new TaskWrapper(disposer)); }
@Deprecated public void setCancelHandler(Runnable handler) { this.setCancelHandler(new TaskWrapper(handler)); }
@Deprecated public void setCancelHandler(Runnable handler) { this.setCancelHandler(new TaskWrapper(handler)); }
@Deprecated public void execute(Runnable runnable) { this.execute(new TaskWrapper(runnable)); }
@Deprecated public void stop(Runnable onCompleted) throws Exception { stop(new TaskWrapper(onCompleted)); }
public static Task runAfter(final Runnable runnable, int count) { return runAfter(new TaskWrapper(runnable), count); } public static Task runAfter(final Task runnable, int count) {
public static Task runOnceAfter(final DispatchQueue queue, final Runnable runnable, int count) { return runOnceAfter(queue, new TaskWrapper(runnable), count); } public static Task runOnceAfter(final DispatchQueue queue, final Task task, int count) {
@Deprecated() public void executeAfter(long delay, TimeUnit unit, Runnable runnable) { this.executeAfter(delay, unit, new TaskWrapper(runnable)); }
@Deprecated public void setEventHandler(Runnable handler) { this.setEventHandler(new TaskWrapper(handler)); }
@Deprecated public void executeAfter(long delay, TimeUnit unit, Runnable runnable) { this.executeAfter(delay, unit, new TaskWrapper(runnable)); }