Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 443 for task (1.3 sec)

  1. docs/en/docs/tutorial/background-tasks.md

    {* ../../docs_src/background_tasks/tutorial001_py39.py hl[6:9] *}
    
    ## 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_py39.py hl[14] *}
    
    `.add_task()` receives as arguments:
    
    * A task function to be run in the background (`write_notification`).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. 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() {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Apr 11 20:57:49 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskQueue.kt

       * started. Similarly the task will be delayed if the host lacks compute resources.
       *
       * @throws RejectedExecutionException if the queue is shut down and the task is not cancelable.
       */
      fun schedule(
        task: Task,
        delayNanos: Long = 0L,
      ) {
        taskRunner.withLock {
          if (shutdown) {
            if (task.cancelable) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java

                task.dependsOn(tasks.named("assembleSamples"));
            });
    
            tasks.named(LifecycleBasePlugin.CHECK_TASK_NAME, task -> task.dependsOn(checkDeadInternalLinks));
        }
    
        private void checkMultiLangSnippetsAreValid(ProjectLayout layout, TaskContainer tasks, GradleDocumentationExtension extension) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Thu Dec 04 14:26:28 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleReleaseNotesPlugin.java

                task.setGroup("release notes");
                task.setDescription("Generate release notes HTML page from Markdown.");
    
                task.getInputEncoding().convention(Charset.defaultCharset().name());
                task.getOutputEncoding().convention(Charset.defaultCharset().name());
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri May 16 18:26:52 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

                );
                task.getDocsDirectory().convention(extension.getDocumentationRenderedRoot());
                task.getPort().convention(webserverPort);
    
                task.dependsOn(extension.getRenderedDocumentation());
            });
    
            tasks.register("docs", task -> {
                task.setDescription("Generates all documentation");
                task.setGroup("documentation");
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jul 02 12:28:02 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/ConcurrentLifecycleStarter.java

            }
    
            return calculateTaskSegments(session, tasks);
        }
    
        public List<TaskSegment> calculateTaskSegments(MavenSession session, List<String> tasks) throws Exception {
            List<TaskSegment> taskSegments = new ArrayList<>(tasks.size());
    
            TaskSegment currentSegment = null;
    
            for (String task : tasks) {
                if (isBeforeOrAfterPhase(task)) {
                    String prevTask = task;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. android/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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  10. 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() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top