api / org.gradle.workers / WorkerExecutor / await

await

abstract fun await(): Unit

Blocks until all work associated with the current build operation is complete. Note that when using this method inside a task action, it will block completion of the task action until all submitted work is complete. This means that other tasks from the same project cannot be run in parallel while the task action is still executing.

Exceptions

WorkerExecutionException - when a failure occurs while executing the work.