Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for _exit (0.23 sec)

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

        🚥 👆 ▶️ ⏮️ **FastAPI** 👆 💪 💚 🚶 ⚫️ 🔜.
    
    🐍, 👆 💪 ✍ 🔑 👨‍💼 <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">🏗 🎓 ⏮️ 2️⃣ 👩‍🔬: `__enter__()` &amp; `__exit__()`</a>.
    
    👆 💪 ⚙️ 👫 🔘 **FastAPI** 🔗 ⏮️ `yield` ⚙️
    `with` ⚖️ `async with` 📄 🔘 🔗 🔢:
    
    ```Python hl_lines="1-9  13"
    {!../../../docs_src/dependencies/tutorial010.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt

            generator.setApplicationName("Gradle")
            generator.setOptsEnvironmentVar("GRADLE_OPTS")
            generator.setExitEnvironmentVar("GRADLE_EXIT_CONSOLE")
            generator.setMainClassName("org.gradle.launcher.GradleMain")
            generator.setScriptRelPath("bin/gradle")
            generator.setClasspath(listOf("lib/$launcherJarName"))
    Plain Text
    - Registered: Wed Feb 28 11:36:09 GMT 2024
    - Last Modified: Fri Feb 24 10:25:27 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    In Python, you can create Context Managers by <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">creating a class with two methods: `__enter__()` and `__exit__()`</a>.
    
    You can also use them inside of **FastAPI** dependencies with `yield` by using
    `with` or `async with` statements inside of the dependency function:
    
    ```Python hl_lines="1-9  13"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    !!! note "技術詳細"
        以下と一緒に使用できる関数なら何でも有効です:
    
        * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a>または
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. api/go1.2.txt

    pkg syscall (linux-arm-cgo), const SYS_EVENTFD2 ideal-int
    pkg syscall (linux-arm-cgo), const SYS_EXECVE ideal-int
    pkg syscall (linux-arm-cgo), const SYS_EXIT ideal-int
    pkg syscall (linux-arm-cgo), const SYS_EXIT_GROUP ideal-int
    pkg syscall (linux-arm-cgo), const SYS_FACCESSAT ideal-int
    pkg syscall (linux-arm-cgo), const SYS_FALLOCATE ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  6. api/go1.1.txt

    pkg syscall (linux-386), const SYS_EVENTFD = 323
    pkg syscall (linux-386), const SYS_EVENTFD2 = 328
    pkg syscall (linux-386), const SYS_EXECVE = 11
    pkg syscall (linux-386), const SYS_EXIT = 1
    pkg syscall (linux-386), const SYS_EXIT_GROUP = 252
    pkg syscall (linux-386), const SYS_FACCESSAT = 307
    pkg syscall (linux-386), const SYS_FADVISE64 = 250
    pkg syscall (linux-386), const SYS_FADVISE64_64 = 272
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    В Python для создания менеджеров контекста можно <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">создать класс с двумя методами: `__enter__()` и `__exit__()`</a>.
    
    Вы также можете использовать их внутри зависимостей **FastAPI** с `yield`, используя операторы
    `with` или `async with` внутри функции зависимости:
    
    ```Python hl_lines="1-9  13"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 04:21:06 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/dependencies/dependencies-with-yield.md

    In Python können Sie Kontextmanager erstellen, indem Sie <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">eine Klasse mit zwei Methoden erzeugen: `__enter__()` und `__exit__()`</a>.
    
    Sie können solche auch innerhalb von **FastAPI**-Abhängigkeiten mit `yield` verwenden, indem Sie `with`- oder `async with`-Anweisungen innerhalb der Abhängigkeits-Funktion verwenden:
    
    ```Python hl_lines="1-9  13"
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 18:10:29 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    !!! warning
        这是一个更为“高级”的想法。
    
        如果您刚开始使用**FastAPI**,您可能暂时可以跳过它。
    
    在Python中,你可以通过<a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">创建一个带有`__enter__()`和`__exit__()`方法的类</a>来创建上下文管理器。
    
    你也可以在**FastAPI**的依赖项中使用带有`yield`的`with`或`async with`语句,通过在依赖函数内部使用它们。
    
    ```Python hl_lines="1-9  13"
    {!../../../docs_src/dependencies/tutorial010.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  10. api/go1.16.txt

    pkg syscall (darwin-arm64), const NOTE_EXIT_DETAIL = 33554432
    pkg syscall (darwin-arm64), const NOTE_EXIT_DETAIL ideal-int
    pkg syscall (darwin-arm64), const NOTE_EXIT_DETAIL_MASK = 458752
    pkg syscall (darwin-arm64), const NOTE_EXIT_DETAIL_MASK ideal-int
    pkg syscall (darwin-arm64), const NOTE_EXIT_MEMORY = 131072
    pkg syscall (darwin-arm64), const NOTE_EXIT_MEMORY ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
Back to top