failureLeaf

inline fun <E> Task<E>.failureLeaf(init: Failure<E>.() -> Unit = {}): Int

Creates and adds a Failure to the receiver Task.

Return

the index where the Failure has been added.

Parameters

E

the type of the receiving task's blackboard.

init

an optional inline block to configure the Failure.