alwaysFail

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

Creates and adds an AlwaysFail to the receiver Task.

Return

the index where the AlwaysFail has been added.

Parameters

task

the task to add to the AlwaysFail.

init

an optional inline block to configure the AlwaysFail.

Type Parameters

E

the type of the receiving task's blackboard.