untilSuccess
inline fun <E> Task<E>.untilSuccess(task: Task<E>? = null, init: UntilSuccess<E>.() -> Unit = {}): Int
Creates and adds an UntilSuccess to the receiver Task.
Return
the index where the UntilSuccess has been added.
Parameters
task
the task to add to the UntilSuccess.
init
an optional inline block to configure the UntilSuccess.
Type Parameters
E
the type of the receiving task's blackboard.