Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 965 for task (1.34 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        final Queue<Runnable> tasks = new ArrayDeque<>();
    
        @Override
        public void execute(Runnable command) {
          tasks.add(command);
        }
    
        boolean hasNext() {
          return !tasks.isEmpty();
        }
    
        void runNext() {
          assertTrue("expected at least one task to run", hasNext());
          tasks.remove().run();
        }
    
        void runAll() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  2. 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)
  3. docs/en/docs/tutorial/background-tasks.md

    ## Add the background task { #add-the-background-task }
    
    Inside of your *path operation function*, pass your task function to the *background tasks* object with the method `.add_task()`:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[14] *}
    
    `.add_task()` receives as arguments:
    
    * A task function to be run in the background (`write_notification`).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. 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)
  5. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.collect-failed-tasks.gradle.kts

                    println("##teamcity[buildProblem description='${buildScanUri}/console-log?task=$it']")
                }
            }
        }
    }
    
    fun shouldBeReportedAsTeamCityBuildProblem(task: Task) = task is Checkstyle || task is Detekt || task is AbstractCompile || task is CodeNarc
    
    abstract class CollectFailedTaskPathsBuildService : AbstractBuildScanInfoCollectingService() {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Apr 11 20:57:49 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to Top