Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for add_task (0.04 sec)

  1. 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.py hl[14] *}
    
    `.add_task()` receives as arguments:
    
    * A task function to be run in the background (`write_notification`).
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

            @Override
            public void run() {
              list.execute();
            }
          };
    
      @Benchmark
      int addThenExecute_multiThreaded(int reps) throws InterruptedException {
        Runnable addTask =
            new Runnable() {
              @Override
              public void run() {
                for (int i = 0; i < numListeners; i++) {
                  list.add(listener, directExecutor());
                }
              }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top