Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for yielded (0.06 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    ## A database dependency with `yield` { #a-database-dependency-with-yield }
    
    For example, you could use this to create a database session and close it after finishing.
    
    Only the code prior to and including the `yield` statement is executed before creating a response:
    
    {* ../../docs_src/dependencies/tutorial007.py hl[2:4] *}
    
    The yielded value is what is injected into *path operations* and other dependencies:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

              }
            });
    
        // Run those tasks together.
        fakePool.runAll();
    
        // Check that the interruption of a SequentialExecutor's task is restored to the thread once
        // it is yielded. Clear the bit while checking so that the test doesn't hose JUnit or some other
        // test case.
        assertThat(Thread.interrupted()).isTrue();
      }
    
      public void testInterrupt_doesNotStopExecution() {
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

     * Runs a [TaskRunner] in a controlled environment so that everything is sequential and
     * deterministic.
     *
     * This class ensures that at most one thread is running at a time. This is initially the JUnit test
     * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or
     * [advanceUntil]. These functions don't return until the task threads are all idle.
     *
     * Task threads release their execution privilege in these ways:
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/eventbus/Dispatcher.java

       * all subscribers in the order they are posted.
       *
       * <p>When all subscribers are dispatched to using a <i>direct</i> executor (which dispatches on
       * the same thread that posts the event), this yields a breadth-first dispatch order on each
       * thread. That is, all subscribers to a single event A will be called before any subscribers to
       * any events B and C that are posted to the event bus by the subscribers to A.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    Using resources from dependencies with `yield` in background tasks is no longer supported.
    
    This change is what supports the new features, read below. πŸ€“
    
    ### Dependencies with `yield`, `HTTPException` and Background Tasks
    
    Dependencies with `yield` now can raise `HTTPException` and other exceptions after `yield`. πŸŽ‰
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Sep 05 12:48:45 UTC 2025
    - 544.1K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/events.md

    {* ../../docs_src/events/tutorial003.py hl[14:19] *}
    
    The first part of the function, before the `yield`, will be executed **before** the application starts.
    
    And the part after the `yield` will be executed **after** the application has finished.
    
    ### Async Context Manager { #async-context-manager }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. docs/ko/docs/advanced/events.md

    μƒˆλ‘œμš΄ 버전을 μ‹œμž‘ν•΄μ•Ό ν•˜κ±°λ‚˜, κ·Έλƒ₯ 싀행을 λ©ˆμΆ”κ³  싢을 μˆ˜λ„ μžˆμŠ΅λ‹ˆλ‹€. 🀷
    
    ///
    
    ### Lifespan ν•¨μˆ˜
    
    λ¨Όμ € μ£Όλͺ©ν•  점은, `yield`λ₯Ό μ‚¬μš©ν•˜μ—¬ 비동기 ν•¨μˆ˜(async function)λ₯Ό μ •μ˜ν•˜κ³  μžˆλ‹€λŠ” κ²ƒμž…λ‹ˆλ‹€. μ΄λŠ” `yield`λ₯Ό μ‚¬μš©ν•œ μ˜μ‘΄μ„±κ³Ό 맀우 μœ μ‚¬ν•©λ‹ˆλ‹€.
    
    {* ../../docs_src/events/tutorial003.py hl[14:19] *}
    
    ν•¨μˆ˜μ˜ 첫 번째 λΆ€λΆ„, 즉 `yield` μ΄μ „μ˜ μ½”λ“œλŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ‹œμž‘λ˜κΈ° **전에** μ‹€ν–‰λ©λ‹ˆλ‹€.
    
    그리고 `yield` μ΄ν›„μ˜ 뢀뢄은 μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ μ™„λ£Œλœ ν›„ **λ‚˜μ€‘μ—** μ‹€ν–‰λ©λ‹ˆλ‹€.
    
    ### 비동기 μ»¨ν…μŠ€νŠΈ λ§€λ‹ˆμ €
    
    ν•¨μˆ˜λ₯Ό 확인해보면, `@asynccontextmanager`둜 μž₯μ‹λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri May 30 13:33:53 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. cmd/speedtest.go

    				}
    
    				// if the default concurrency yields zero results, throw an error.
    				if throughputHighestResults[i].Downloads == 0 && opts.concurrencyStart == concurrency {
    					errStr = fmt.Sprintf("no results for downloads upon first attempt, concurrency %d and duration %s",
    						opts.concurrencyStart, opts.duration)
    				}
    
    				// if the default concurrency yields zero results, throw an error.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                        yield webConfigService.getWebConfig(id).get();
                    }
                    case FILE -> {
                        final FileConfigService fileConfigService = ComponentUtil.getComponent(FileConfigService.class);
                        yield fileConfigService.getFileConfig(id).get();
                    }
                    case DATA -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

        corruptor()
    
        return client.newCall(request).execute()
      }
    
      /**
       * @param delta the offset from the current date to use. Negative values yield dates in the past;
       *     positive values yield dates in the future.
       */
      private fun formatDate(
        delta: Long,
        timeUnit: TimeUnit,
      ): String? = formatDate(Date(System.currentTimeMillis() + timeUnit.toMillis(delta)))
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top