ownLater

public int ownLater(int ticks, Runnable runnable)

Schedule a one-shot owned Java task; auto-cancelled on shutdown. Returns its id.


public int ownLater(int ticks, Runnable runnable, boolean outlivesOwner)

Schedule a one-shot owned Java task. With outlivesOwner, the task keeps running through retire; otherwise retirement cancels it. Shutdown always cancels it.