/** * Submits the specified {@link Runnable} on this {@link DispatchQueue} at * the specified time. * * @param when the time when to submit the {@link Runnable}. * @param block the {@link Runnable} to be run. * * @since Available in iOS 4.0 and later. */ public void at(Date when, Runnable block) { long ms = when.getTime(); timespec ts = new timespec(ms / 1000, (ms % 1000) * 1000); after(Dispatch.walltime(ts, 0), this, block); } /*<methods>*/
public timespec(@MachineSizedSInt long tv_sec, @MachineSizedSInt long tv_nsec) { this.setTv_sec(tv_sec); this.setTv_nsec(tv_nsec); } /*</constructors>*/
public timespec(@MachineSizedSInt long tv_sec, @MachineSizedSInt long tv_nsec) { this.setTv_sec(tv_sec); this.setTv_nsec(tv_nsec); } /*</constructors>*/
/** * Submits the specified {@link Runnable} on this {@link DispatchQueue} at * the specified time. * * @param when the time when to submit the {@link Runnable}. * @param block the {@link Runnable} to be run. * * @since Available in iOS 4.0 and later. */ public void at(Date when, Runnable block) { long ms = when.getTime(); timespec ts = new timespec(ms / 1000, (ms % 1000) * 1000); after(Dispatch.walltime(ts, 0), this, block); } /*<methods>*/
public timespec(@MachineSizedSInt long tv_sec, @MachineSizedSInt long tv_nsec) { this.setTv_sec(tv_sec); this.setTv_nsec(tv_nsec); } /*</constructors>*/
/** * Submits the specified {@link Runnable} on this {@link DispatchQueue} at * the specified time. * * @param when the time when to submit the {@link Runnable}. * @param block the {@link Runnable} to be run. * * @since Available in iOS 4.0 and later. */ public void at(Date when, Runnable block) { long ms = when.getTime(); timespec ts = new timespec(ms / 1000, (ms % 1000) * 1000); after(Dispatch.walltime(ts, 0), this, block); } /*<methods>*/