public class LegacyWorkerExecutorHelper extends WorkerExecutorHelper
ExecutorService on Gradle
versions where the Worker API is not available| Constructor and Description |
|---|
LegacyWorkerExecutorHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
await()
Wait for all jobs of the current build operation to complete
|
boolean |
needsAwait()
Returns
true if WorkerExecutorHelper.await() MUST be called at the end of
the task. |
void |
submit(Job job)
Execute a job asynchronously
|
newInstancepublic void submit(Job job)
WorkerExecutorHelpersubmit in class WorkerExecutorHelperjob - the job to executepublic void await()
WorkerExecutorHelperawait in class WorkerExecutorHelperpublic boolean needsAwait()
WorkerExecutorHelpertrue if WorkerExecutorHelper.await() MUST be called at the end of
the task. This mostly applies to Gradle versions that don't have a
Worker API and therefore cannot let the task continue to run in parallel
to others.needsAwait in class WorkerExecutorHelpertrue if WorkerExecutorHelper.await() must be called