defer

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

Utility to create a new DeferredTask 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.