abstract fun whenTaskAdded(action: Action<in T>): Action<in T>
Adds an Action
to be executed when a task is added to this collection.
action
- The action to be executed
Return
the supplied action
abstract fun whenTaskAdded(closure: Closure<Any>): Unit
Adds a closure to be called when a task is added to this collection. The task is passed to the closure as the parameter.