whenReady

abstract fun whenReady(closure: Closure)(source)

Adds a closure to be called when this graph has been populated. This graph is passed to the closure as a parameter.

When the configuration cache is enabled, this callback only fires during the configuration phase (a cache miss). On a cache hit, the task graph is loaded from the cache and this callback is not invoked.

Parameters

closure

The closure to execute when this graph has been populated.


abstract fun whenReady(action: Action<TaskExecutionGraph>)(source)

Adds an action to be called when this graph has been populated. This graph is passed to the action as a parameter.

When the configuration cache is enabled, this callback only fires during the configuration phase (a cache miss). On a cache hit, the task graph is loaded from the cache and this callback is not invoked.

Since

3.1

Parameters

action

The action to execute when this graph has been populated.