Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for Awaitable (0.06 seconds)

  1. fastapi/datastructures.py

            Any next read or write will be done from that position.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().seek(offset)
    
        async def close(self) -> None:
            """
            Close the file.
    
            To be awaitable, compatible with async, this is run in threadpool.
            """
            return await super().close()
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. fastapi/routing.py

    # dependencies' AsyncExitStack
    def request_response(
        func: Callable[[Request], Awaitable[Response] | Response],
    ) -> ASGIApp:
        """
        Takes a function or coroutine `func(request) -> response`,
        and returns an ASGI application.
        """
        f: Callable[[Request], Awaitable[Response]] = (
            func  # type: ignore[assignment]  # ty: ignore[unused-ignore-comment]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  3. tests/test_dependency_contextvars.py

    from collections.abc import Awaitable, Callable
    from contextvars import ContextVar
    from typing import Any
    
    from fastapi import Depends, FastAPI, Request, Response
    from fastapi.testclient import TestClient
    
    legacy_request_state_context_var: ContextVar[dict[str, Any] | None] = ContextVar(
        "legacy_request_state_context_var", default=None
    )
    
    app = FastAPI()
    
    
    async def set_up_request_state_dependency():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  4. fastapi/applications.py

            ```python
            import time
            from typing import Awaitable, Callable
    
            from fastapi import FastAPI, Request, Response
    
            app = FastAPI()
    
    
            @app.middleware("http")
            async def add_process_time_header(
                request: Request, call_next: Callable[[Request], Awaitable[Response]]
            ) -> Response:
                start_time = time.time()
    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. src/cmd/asm/internal/asm/testdata/arm64error.s

    	MSR	R6, AMEVTYPER02_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER03_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER04_EL0                              // ERROR "system register is not writable"
    	MSR	R6, AMEVTYPER05_EL0                              // ERROR "system register is not writable"
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Tue Feb 24 21:29:25 GMT 2026
    - 38.5K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/exception/FessSystemExceptionTest.java

            assertEquals(0, exception.getSuppressed().length);
        }
    
        @Test
        public void test_constructor_withWritableStackTrace() {
            // Test protected constructor with writable stack trace
            String message = "Test with writable stack trace";
            TestFessSystemException exception = new TestFessSystemException(message, true, true);
    
            assertEquals(message, exception.getMessage());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  7. src/main/webapp/js/purify.min.js

    Re=null;const we=R({},[...z,...P,...F,...H]);let Ce=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Oe=null,ve=null;const ke=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let xe=!0,Le=!0,Ie=!1,Me=!0...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:21:57 GMT 2026
    - 22.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/thumbnail/ThumbnailGeneratorTest.java

            assertFalse(thumbnailGenerator.generate(thumbnailId, null));
        }
    
        @Test
        public void test_generate_withInvalidOutputPath() throws IOException {
            // Test generation with non-writable output file
            File readOnlyDir = Files.createTempDirectory(tempDir, "readonly").toFile();
            readOnlyDir.setWritable(false);
            File invalidOutputFile = new File(readOnlyDir, "thumbnail.png");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 11.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTraceForMessageOnlyConstructor() {
            // Test that stack trace is not writable when using message-only constructor
            ThumbnailGenerationException exception = new ThumbnailGenerationException("Test message");
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          return kvMap;
        } else if (map instanceof EnumMap) {
          EnumMap<?, ?> enumMap = (EnumMap<?, ?>) map;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
Back to Top