Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for _shutdown (0.29 seconds)

  1. fastapi/routing.py

        async def _shutdown(self) -> None:
            """
            Run any `.on_shutdown` event handlers.
    
            This method is kept for backward compatibility after Starlette removed
            support for on_startup/on_shutdown handlers.
    
            Ref: https://github.com/Kludex/starlette/pull/3117
            """
            for handler in self.on_shutdown:
                if is_async_callable(handler):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // TODO(cpovirk): implement interruption, updating this test:
        // https://github.com/google/guava/issues/1989
        assertEquals(1, gotException.getCount());
        // gotException.await();
        service.shutdown();
        service.awaitTermination(30, SECONDS);
      }
    
      public void testTransformAsync_cancelPropagatesToAsyncOutput() throws Exception {
        ListenableFuture<Foo> immediate = immediateFuture(new Foo());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        // TODO(cpovirk): implement interruption, updating this test:
        // https://github.com/google/guava/issues/1989
        assertEquals(1, gotException.getCount());
        // gotException.await();
        service.shutdown();
        service.awaitTermination(30, SECONDS);
      }
    
      public void testTransformAsync_cancelPropagatesToAsyncOutput() throws Exception {
        ListenableFuture<Foo> immediate = immediateFuture(new Foo());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  4. fastapi/applications.py

                    """
                ),
            ] = None,
            on_shutdown: Annotated[
                Sequence[Callable[[], Any]] | None,
                Doc(
                    """
                    A list of shutdown event handler functions.
    
                    You should instead use the `lifespan` handlers.
    
                    Read more in the
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/internal/concurrent/TaskQueue;->schedule(Lokhttp3/internal/concurrent/Task;J)V
    HSPLokhttp3/internal/concurrent/TaskQueue;->scheduleAndDecide$okhttp(Lokhttp3/internal/concurrent/Task;JZ)Z
    HSPLokhttp3/internal/concurrent/TaskQueue;->shutdown()V
    HSPLokhttp3/internal/concurrent/TaskRunner$RealBackend;-><init>(Ljava/util/concurrent/ThreadFactory;)V
    HSPLokhttp3/internal/concurrent/TaskRunner$RealBackend;->coordinatorNotify(Lokhttp3/internal/concurrent/TaskRunner;)V
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
  6. cmd/server_test.go

    	s.accessKey = s.testServer.AccessKey
    	s.secretKey = s.testServer.SecretKey
    }
    
    func (s *TestSuiteCommon) RestartTestServer(c *check) {
    	// Shutdown.
    	s.testServer.cancel()
    	s.testServer.Server.Close()
    	s.testServer.Obj.Shutdown(context.Background())
    
    	// Restart.
    	ctx, cancel := context.WithCancel(context.Background())
    
    	s.testServer.cancel = cancel
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 118.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

          threadAboutToBlockForRefresh.set(Thread.currentThread());
          assertThat(cache.getOrLoad("test")).isEqualTo("testReload");
        } finally {
          refreshExecutor.shutdown();
        }
      }
    
      public void testSetRemovalListener() {
        RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
        LocalCache<Object, Object> map =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 114.9K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/cache/LocalCacheTest.java

          threadAboutToBlockForRefresh.set(Thread.currentThread());
          assertThat(cache.getOrLoad("test")).isEqualTo("testReload");
        } finally {
          refreshExecutor.shutdown();
        }
      }
    
      public void testSetRemovalListener() {
        RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
        LocalCache<Object, Object> map =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
Back to Top