on Complete
fun onComplete(delay: Long = 0, unit: TimeUnit = TimeUnit.MILLISECONDS, action: ShardRunnable.() -> Unit): ShardRunnable
Define a runnable to executed after the completion of this runnable, This runnable will run the same async state of the previous 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