- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 611 for Task (0.03 seconds)
-
guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java
public <T> ListenableFuture<T> submit(Callable<T> task) { Preconditions.checkNotNull(task, "task must not be null!"); return delegate.submit(task); } @Override public <T> ListenableFuture<T> submit(Runnable task, T result) { Preconditions.checkNotNull(task, "task must not be null!"); Preconditions.checkNotNull(result, "result must not be null!"); return delegate.submit(task, result); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:37:28 GMT 2025 - 6.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java
public <T> Future<T> submit(Callable<T> task) { lastMethodCalled = "submit"; assertThat(task).isInstanceOf(WrappedCallable.class); return inline.submit(task); } @Override public Future<?> submit(Runnable task) { lastMethodCalled = "submit"; assertThat(task).isInstanceOf(WrappedRunnable.class); return inline.submit(task); } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 10.1K bytes - Click Count (0) -
android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java
private volatile boolean taskDone; public void testNoOpScheduledExecutor() throws InterruptedException { taskDone = false; Runnable task = () -> taskDone = true; ScheduledFuture<?> future = TestingExecutors.noOpScheduledExecutor().schedule(task, 10, MILLISECONDS); Thread.sleep(20); assertFalse(taskDone); assertFalse(future.isDone()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 3.3K bytes - Click Count (0) -
guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java
private volatile boolean taskDone; public void testNoOpScheduledExecutor() throws InterruptedException { taskDone = false; Runnable task = () -> taskDone = true; ScheduledFuture<?> future = TestingExecutors.noOpScheduledExecutor().schedule(task, 10, MILLISECONDS); Thread.sleep(20); assertFalse(taskDone); assertFalse(future.isDone()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 3.3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java
private static RerunTestExecuter createRetryTestExecuter(Task task, TestRerunTaskExtension extension) { TestExecuter<JvmTestExecutionSpec> delegate = getTestExecuter(task); return new RerunTestExecuter(extension, delegate); } private static TestExecuter<JvmTestExecutionSpec> getTestExecuter(Task task) { return invoke(declaredMethod(Test.class, "createTestExecuter"), task); }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 3.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
// Regression test for a deadlock where a task could be stuck busy waiting for the task to // transition to DONE public void testInterruptThrows() throws Exception { CountDownLatch isInterruptibleRegistered = new CountDownLatch(1); SettableFuture<String> taskResult = SettableFuture.create(); InterruptibleTask<String> task = new InterruptibleTask<String>() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
// Regression test for a deadlock where a task could be stuck busy waiting for the task to // transition to DONE public void testInterruptThrows() throws Exception { CountDownLatch isInterruptibleRegistered = new CountDownLatch(1); SettableFuture<String> taskResult = SettableFuture.create(); InterruptibleTask<String> task = new InterruptibleTask<String>() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/vagrant/VagrantBasePlugin.java
@Override public void beforeActions(Task task) { callIfVagrantTask(task, VagrantMachine::maybeStartVM); } @Override public void afterExecute(Task task, TaskState state) { callIfVagrantTask(task, service -> service.maybeStopVM(state.getFailure() != null)); } }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.1K bytes - Click Count (0) -
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/InternalDistributionBwcSetupPluginFuncTest.groovy
.build() then: result.task(":distribution:bwc:${bwcProject}:buildBwcDarwinTar").outcome == TaskOutcome.SUCCESS result.task(":distribution:bwc:${bwcProject}:buildBwcOssDarwinTar").outcome == TaskOutcome.SUCCESS and: "assemble task triggered" assertOutputContains(result.output, "[$bwcDistVersion] > Task :distribution:archives:darwin-tar:${expectedAssembleTaskName}")
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 03 10:22:28 GMT 2021 - 7.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/timer/TimeoutTask.java
* Returns whether the task has been canceled. * * @return whether the task has been canceled */ public boolean isCanceled() { return status == CANCELED; } /** * Cancels the task. */ public void cancel() { status = CANCELED; } /** * Returns whether the task is stopped. * * @return whether the task is stopped */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 2.7K bytes - Click Count (0)