Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 371 for Mask (0.03 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    **FastAPI** 会创建一个 `BackgroundTasks` 类型的对象并作为该参数传入。
    
    ## 创建一个任务函数 { #create-a-task-function }
    
    创建要作为后台任务运行的函数。
    
    它只是一个可以接收参数的标准函数。
    
    它可以是 `async def` 或普通的 `def` 函数,**FastAPI** 知道如何正确处理。
    
    在这种情况下,任务函数将写入一个文件(模拟发送电子邮件)。
    
    由于写操作不使用 `async` 和 `await`,我们用普通的 `def` 定义函数:
    
    {* ../../docs_src/background_tasks/tutorial001_py310.py hl[6:9] *}
    
    ## 添加后台任务 { #add-the-background-task }
    
    在你的 *路径操作函数* 里,用 `.add_task()` 方法将任务函数传到 *后台任务* 对象中:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. 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
        @Test
        public void test_createSystemProperties() throws IOException {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  3. 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
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 21.6K bytes
    - Click Count (0)
  4. tensorflow/c/eager/c_api_experimental.h

    // custom devices will fail.
    //
    // `device_name` must not name an existing physical or custom device. It must
    // follow the format:
    //
    //    /job:<name>/replica:<replica>/task:<task>/device:<type>:<device_num>
    //
    // If the device is successfully registered, `status` is set to TF_OK. Otherwise
    // the device is not usable. In case of a bad status, `device.delete_device` is
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Click Count (1)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/InternalJavaRestTestPlugin.java

            SourceSetContainer sourceSets = project.getExtensions().getByType(SourceSetContainer.class);
            SourceSet javaTestSourceSet = sourceSets.create(SOURCE_SET_NAME);
    
            // setup the javaRestTest task
            registerTestTask(project, javaTestSourceSet);
    
            // setup dependencies
            setupTestDependenciesDefaults(project, javaTestSourceSet);
    
            // setup IDE
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 18:10:22 GMT 2021
    - 1.6K bytes
    - Click Count (0)
  6. .github/ISSUE_TEMPLATE/config.yml

    blank_issues_enabled: false
    contact_links:
      - name: Ask for help
        url: http://help.gradle.org/
        about: If you need help with Gradle or have a usage question, please reach our community instead of creating an issue.
      - name: Create an issue without template
        url: https://github.com/gradle/gradle/issues/new?template=blank
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Apr 02 09:20:35 GMT 2025
    - 402 bytes
    - Click Count (0)
  7. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/nullaway/NullawayStatusTask.kt

        @get:Input
        abstract val nullawayEnabled: Property<Boolean>
    
        // TODO(https://github.com/gradle/gradle/issues/27582): We cannot use a SetProperty<ResolvedArtifactResult> because some projects
        //  have no task dependencies and thus are non-CC serializable.
        @get:Input
        abstract val nullawayAwareDeps: Property<ArtifactCollection>
    
        init {
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Aug 20 13:18:23 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/Builder.java

     * </p>
     * <strong>Note:</strong> This interface is part of work in progress and can be changed or removed without notice.
     */
    public interface Builder {
        //
        // Be nice to whittle this down to Session, maybe add task segments to the session. The session really is
        // the place to store reactor related information.
        //
        void build(
                MavenSession session,
                ReactorContext reactorContext,
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  9. docs/en/docs/_llm-test.md

    * the GitHub issue
    
    * the performance
    * the performance optimization
    
    * the return type
    * the return value
    
    * the security
    * the security scheme
    
    * the task
    * the background task
    * the task function
    
    * the template
    * the template engine
    
    * the type annotation
    * the type hint
    
    * the server worker
    * the Uvicorn worker
    * the Gunicorn Worker
    * the worker process
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  10. configure.py

      If var_name has been set as environment variable, use the preset value, else
      ask for user input. If no input is provided, the default is used.
    
      Args:
        environ_cp: copy of the os.environ.
        var_name: string for name of environment variable, e.g. "TF_NEED_CUDA".
        ask_for_var: string for how to ask for user input.
        var_default: default value string.
    
      Returns:
        string value for var_name
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 19 16:32:04 GMT 2025
    - 48.3K bytes
    - Click Count (0)
Back to Top