untilFail

inline fun <E> Task<E>.untilFail(task: Task<E>? = null, init: UntilFail<E>.() -> Unit = {}): Int

Creates and adds an UntilFail to the receiver Task.

Return

the index where the UntilFail has been added.

Parameters

task

the task to add to the UntilFail.

init

an optional inline block to configure the UntilFail.

Type Parameters

E

the type of the receiving task's blackboard.