Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 322 for tasks (0.05 sec)

  1. docs/zh/docs/advanced/async-tests.md

    ## 其他异步函数调用
    
    由于测试函数现在是异步的,因此除了在测试中向 FastAPI 应用程序发送请求之外,您现在还可以调用(和使用 `await` 等待)其他 `async` 异步函数,就和您在代码中的其他任何地方调用它们的方法一样。
    
    /// tip
    
    如果您在测试程序中集成异步函数调用的时候遇到一个 `RuntimeError: Task attached to a different loop` 的报错(例如,使用 <a href="https://stackoverflow.com/questions/41584243/runtimeerror-task-attached-to-a-different-loop" class="external-link" target="_blank">MongoDB 的 MotorClient</a> 时),请记住,只能在异步函数中实例化需要事件循环的对象,例如通过 `'@app.on_event("startup")` 回调函数进行初始化。
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Dec 17 21:49:06 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        assertThat(exceptions).isEmpty();
      }
    
      private static List<Throwable> runThreadsAndReturnExceptions(int numThreads, Runnable task) {
        List<Thread> threads = new ArrayList<>(numThreads);
        List<Throwable> exceptions = new ArrayList<>(numThreads);
        for (int i = 0; i < numThreads; i++) {
          Thread thread = new Thread(task);
          thread.setUncaughtExceptionHandler(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/SettableFuture.java

     * other {@code Future}, be {@linkplain #cancel cancelled}.
     *
     * <p>{@code SettableFuture} is the recommended {@code ListenableFuture} implementation when your
     * task cannot be implemented with {@link ListeningExecutorService}, the various {@link Futures}
     * utility methods, or {@link ListenableFutureTask}. Those APIs have less opportunity for developer
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/job/ExecJobTest.java

            // Test with timeout set
            execJob.timeout = 10;
            execJob.sessionId = "test-session";
            TimeoutTask task = execJob.testCreateTimeoutTask();
            assertNotNull(task);
    
            // Clean up timeout task
            task.cancel();
        }
    
        // Test createSystemProperties method
        public void test_createSystemProperties() throws IOException {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      Lockable {
      private val key: String
    
      /** Non-null for client web sockets. These can be canceled. */
      internal var call: Call? = null
    
      /** This task processes the outgoing queues. Call [runWriter] to after enqueueing. */
      private var writerTask: Task? = null
    
      /** Null until this web socket is connected. Only accessed by the reader thread. */
      private var reader: WebSocketReader? = null
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/SettableFuture.java

     * other {@code Future}, be {@linkplain #cancel cancelled}.
     *
     * <p>{@code SettableFuture} is the recommended {@code ListenableFuture} implementation when your
     * task cannot be implemented with {@link ListeningExecutorService}, the various {@link Futures}
     * utility methods, or {@link ListenableFutureTask}. Those APIs have less opportunity for developer
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/job/ExecJob.java

                    buf.append(file.getName());
                }
            }
        }
    
        /**
         * Creates a timeout task for this job execution.
         * If timeout is not set or is &lt;= 0, returns null.
         *
         * @return the timeout task, or null if no timeout is configured
         */
        protected TimeoutTask createTimeoutTask() {
            if (timeout <= 0) {
                return null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  8. .github/bot_config.yml

             * It has an added advantage since you can you easily switch to different hardware accelerators (cpu, gpu, tpu) as per the task.
             * All you need is a good internet connection and you are all set.
          * Try to build TF from sources by changing CPU optimization flags.
       
       *Please let us know if this helps.*
       
    windows_comment: >
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Jun 30 16:38:59 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/opensearch/common/ImplementedInvokerAssistant.java

            // Default constructor
        }
    
        /** Default client invoke names for DBFlute behavior invocation. */
        protected static final String[] DEFAULT_CLIENT_INVOKE_NAMES = { "Page", "Action", "Controller", "ControllerImpl", "Task", "Test" };
    
        /** Default bypass invoke names for DBFlute behavior invocation. */
        protected static final String[] DEFAULT_BYPASS_INVOKE_NAMES =
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/Strings.java

                len++;
                if (len > maxLen) {
                    throw new RuntimeCIFSException("zero termination not found");
                }
            }
            return len;
        }
    
        /**
         * Masks sensitive values in a string for security purposes.
         *
         * @param value the string potentially containing sensitive information
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top