Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 661 for cleanly (0.04 seconds)

  1. docs_src/dependencies/tutorial008e_an_py310.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: Annotated[str, Depends(get_username, scope="function")]):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 329 bytes
    - Click Count (0)
  2. guava/src/com/google/common/cache/ForwardingCache.java

        return delegate().stats();
      }
    
      @Override
      @J2ktIncompatible
      public ConcurrentMap<K, V> asMap() {
        return delegate().asMap();
      }
    
      @Override
      public void cleanUp() {
        delegate().cleanUp();
      }
    
      /**
       * A simplified version of {@link ForwardingCache} where subclasses can pass in an already
       * constructed {@link Cache} as the delegate.
       *
       * @since 10.0
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

        }
    
        // <lifecycle>
        //   <id>clean</id>
        //   <phases>
        //     <phase>pre-clean</phase>
        //     <phase>clean</phase>
        //     <phase>post-clean</phase>
        //   </phases>
        //   <default-phases>
        //     <clean>org.apache.maven.plugins:maven-clean-plugin:clean</clean>
        //   </default-phases>
        // </lifecycle>
    
        private String id;
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Dec 13 23:04:37 GMT 2024
    - 3.7K bytes
    - Click Count (0)
  4. docs/en/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial006_py310.py hl[16] *}
    
    It will be clearly marked as deprecated in the interactive docs:
    
    <img src="/img/tutorial/path-operation-configuration/image04.png">
    
    Check how deprecated and non-deprecated *path operations* look like:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

            super.setUp(testInfo);
            processHelper = new ProcessHelper();
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            // Clean up any running processes
            processHelper.destroy();
            super.tearDown(testInfo);
        }
    
        @Test
        public void test_isProcessRunning_empty() {
            assertFalse(processHelper.isProcessRunning());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 16K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbFileHandleImpl.java

            try {
                if (this.usageCount != null && this.usageCount.get() != 0 && this.open) {
                    log.warn("File handle was not properly closed, performing emergency cleanup: " + this);
                    if (this.creationBacktrace != null) {
                        log.warn(Arrays.toString(this.creationBacktrace));
                    }
                    emergencyCloseHandle();
                }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.4K bytes
    - Click Count (1)
  7. fastapi/.agents/skills/fastapi/SKILL.md

    Use dependencies when the logic can't be declared in Pydantic validation, depends on external resources, needs cleanup (with `yield`), or is shared across endpoints.
    
    Apply shared dependencies at the router level via `dependencies=[Depends(...)]`.
    
    ## Async vs Sync *path operations*
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  8. src/test/java/jcifs/SmbSessionTest.java

            }
    
            @Test
            @DisplayName("Should handle exceptions during resource cleanup")
            void shouldHandleExceptionsDuringResourceCleanup() throws Exception {
                SmbSession mockSession = mock(SmbSession.class);
                doThrow(new RuntimeException("Cleanup failed")).when(mockSession).close();
    
                assertThrows(RuntimeException.class, () -> {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/opensearch/client/SearchEngineClientRebuildTest.java

            final boolean result = testClient.reindexConfigIndices(false, allTargetPrefixes());
    
            assertFalse(result);
            // Backup should be cleaned up
            assertTrue(testClient.deletedIndices.size() > 0, "Backup indices should be cleaned up");
        }
    
        @Test
        public void test_reindexConfigIndices_reindexFromBackupFailureCleansUp() {
            testClient.existsIndexResult = true;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 28.6K bytes
    - Click Count (0)
  10. AI_POLICY.md

    2. **Thoughtful, honest feedback.** We will consider every contribution on its merits, regardless of whether AI was used. We may not respond quickly—our review queue is long—but we will tell you clearly what works, what needs to change, and why.
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Mar 27 18:43:39 GMT 2026
    - 3.1K bytes
    - Click Count (0)
Back to Top