Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 302 for shutDown (0.07 seconds)

  1. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

      /** Lock used whenever accessing the state variables (runningTasks, shutdown) of the executor */
      private final Object lock = new Object();
    
      /*
       * Conceptually, these two variables describe the executor being in
       * one of three states:
       *   - Active: shutdown == false
       *   - Shutdown: runningTasks > 0 and shutdown == true
       *   - Terminated: runningTasks == 0 and shutdown == true
       */
      @GuardedBy("lock")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Dec 16 14:23:59 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  2. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

        private volatile boolean shutdown;
    
        @Override
        public void shutdown() {
          shutdown = true;
        }
    
        @Override
        public List<Runnable> shutdownNow() {
          shutdown();
          return ImmutableList.of();
        }
    
        @Override
        public boolean isShutdown() {
          return shutdown;
        }
    
        @Override
        public boolean isTerminated() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/RecordingExecutor.kt

            return
          }
        }
        throw AssertionError("No such job: $url")
      }
    
      override fun shutdown() {
        shutdown = true
      }
    
      override fun shutdownNow(): List<Runnable> = throw UnsupportedOperationException()
    
      override fun isShutdown(): Boolean = shutdown
    
      override fun isTerminated(): Boolean = throw UnsupportedOperationException()
    
      override fun awaitTermination(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Oct 06 18:34:01 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  4. docs/en/docs/advanced/events.md

    ### `shutdown` event { #shutdown-event }
    
    To add a function that should be run when the application is shutting down, declare it with the event `"shutdown"`:
    
    {* ../../docs_src/events/tutorial002_py310.py hl[6] *}
    
    Here, the `shutdown` event handler function will write a text line `"Application shutdown"` to a file `log.txt`.
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  5. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

        private volatile boolean shutdown;
    
        @Override
        public void shutdown() {
          shutdown = true;
        }
    
        @Override
        public List<Runnable> shutdownNow() {
          shutdown();
          return ImmutableList.of();
        }
    
        @Override
        public boolean isShutdown() {
          return shutdown;
        }
    
        @Override
        public boolean isTerminated() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  6. docs/zh-hant/docs/advanced/testing-events.md

    # 測試事件:lifespan 與 startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    當你需要在測試中執行 lifespan(生命週期)時,你可以使用 TestClient 並搭配 with 陳述式:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    你可以閱讀更多細節:[在測試中執行 lifespan](https://www.starlette.dev/lifespan/#running-lifespan-in-tests)(Starlette 官方文件)。
    
    對於已棄用的 `startup` 和 `shutdown` 事件,你可以這樣使用 TestClient:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 618 bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/job/JobExecutor.java

        /**
         * Initiates shutdown of the job executor.
         * This method notifies the shutdown listener to perform cleanup operations.
         */
        public void shutdown() {
            shutdownListener.onShutdown();
        }
    
        /**
         * Adds a shutdown listener to be notified when the executor is shutting down.
         *
         * @param listener the shutdown listener to add
         */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/WebSocket.kt

       * message buffer (16 MiB) will be rejected and trigger a [graceful shutdown][close] of this web
       * socket. This method returns false in that case, and in any other case where this web socket is
       * closing, closed, or canceled.
       *
       * This method returns immediately.
       */
      fun send(bytes: ByteString): Boolean
    
      /**
       * Attempts to initiate a graceful shutdown of this web socket. Any already-enqueued messages will
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:45:14 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/job/JobExecutorTest.java

            assertEquals(listener, jobExecutor.shutdownListener);
    
            // Verify listener is called on shutdown
            jobExecutor.shutdown();
            assertTrue(shutdownCalled.get());
        }
    
        @Test
        public void test_addShutdownListener_replace() {
            // Test replacing shutdown listener
            AtomicInteger callCount = new AtomicInteger(0);
            ShutdownListener listener1 = new ShutdownListener() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  10. docs/ja/docs/advanced/testing-events.md

    # イベントのテスト: lifespan と startup - shutdown { #testing-events-lifespan-and-startup-shutdown }
    
    テストで `lifespan` を実行する必要がある場合は、`with` 文と併用して `TestClient` を使用できます:
    
    {* ../../docs_src/app_testing/tutorial004_py310.py hl[9:15,18,27:28,30:32,41:43] *}
    
    より詳しい内容は、[公式 Starlette ドキュメントの「テストでの lifespan の実行」](https://www.starlette.dev/lifespan/#running-lifespan-in-tests) を参照してください。
    
    非推奨の `startup` および `shutdown` イベントについては、次のように `TestClient` を使用できます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 15:24:30 GMT 2026
    - 724 bytes
    - Click Count (0)
Back to Top