- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NoAvailableWorkerLeaseException (0.27 sec)
-
platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/work/DefaultWorkerLeaseServiceWorkerLeaseTest.groovy
then: thrown(NoAvailableWorkerLeaseException) when: def result = registry.runAsWorkerThread(action) then: result == "result" and: !registry.workerThread when: registry.currentWorkerLease then: thrown(NoAvailableWorkerLeaseException) cleanup: registry?.stop()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:48:02 UTC 2023 - 13.2K bytes - Viewed (0) -
platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/DefaultWorkerLeaseService.java
public WorkerLease getCurrentWorkerLease() { List<? extends WorkerLease> operations = workerLeaseLockRegistry.getResourceLocksByCurrentThread(); if (operations.isEmpty()) { throw new NoAvailableWorkerLeaseException("No worker lease associated with the current thread"); } if (operations.size() != 1) { throw new IllegalStateException("Expected the current thread to hold a single worker lease");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 09 04:43:28 UTC 2024 - 20.9K bytes - Viewed (0)