successLeaf

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

Creates and adds a Success to the receiver Task.

Return

the index where the Success has been added.

Parameters

E

the type of the receiving task's blackboard.

init

an optional inline block to configure the Success.