defer

fun defer(taskBuilder: () -> Task): DynamicTask

Utility to create a new DynamicTask based on the supplied task builder. Useful for constructing tasks that use data that is not available at the build time of the wrapped task.