- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isInBackground (0.24 sec)
-
platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/enterprise/GradleEnterprisePluginBackgroundJobExecutorsIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 29 16:27:53 UTC 2024 - 7K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/test/groovy/org/gradle/internal/enterprise/impl/DefaultGradleEnterprisePluginBackgroundJobExecutorsTest.groovy
then: thrown RejectedExecutionException } def "isInBackground returns proper status from inside the job"() { when: def task = new FutureTask<>(jobExecutors::isInBackground) jobExecutors.userJobExecutor.execute(task) then: task.get() == true } def "isInBackground returns proper status from outside the job"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 2K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/GradleEnterprisePluginBackgroundJobExecutors.java
*/ Executor getUserJobExecutor(); /** * Returns {@code true} if the current thread is running the background job submitted to one of executors owned by this class. */ boolean isInBackground();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 2.3K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/enterprise/impl/DefaultGradleEnterprisePluginBackgroundJobExecutors.java
executorService.execute(() -> unsafeConfigurationService.withConfigurationInputTrackingDisabled(() -> { job.run(); return null; })); } @Override public boolean isInBackground() { return Thread.currentThread() instanceof BackgroundThread; } /** * Shuts the executors down.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Feb 29 16:27:53 UTC 2024 - 3.8K bytes - Viewed (0)