onCompleteAsync

fun onCompleteAsync(delay: Long = 0, unit: TimeUnit = TimeUnit.MILLISECONDS, action: ShardRunnable.() -> Unit): ShardRunnable

Define a runnable to executed asynchronously after the completion of this runnable

Return

The new ShardRunnable

Parameters

delay

delay before this task should be executed

unit

The unit of time the delay is in

action

The task to be executed