Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 67 for Exit (0.13 sec)

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

    # yieldを持つ依存関係
    
    FastAPIは、いくつかの<abbr title='時々"exit"、"cleanup"、"teardown"、"close"、"context managers"、 ...のように呼ばれる'>終了後の追加のステップ</abbr>を行う依存関係をサポートしています。
    
    これを行うには、`return`の代わりに`yield`を使い、その後に追加のステップを書きます。
    
    !!! tip "豆知識"
        `yield`は必ず一度だけ使用するようにしてください。
    
    !!! info "情報"
        これを動作させるには、**Python 3.7** 以上を使用するか、**Python 3.6** では"backports"をインストールする必要があります:
    
        ```
        pip install async-exit-stack async-generator
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt

            echo "${'$'}REPO was polluted during the build"
            ${if (exitOnFailure) "exit 1" else ""}
        else
            echo "${'$'}REPO does not exist"
        fi
    
    """.trimIndent()
    
    fun checkCleanDirWindows(dir: String, exitOnFailure: Boolean = true) = """
        IF exist $dir (
            TREE $dir
            RMDIR /S /Q $dir
            ${if (exitOnFailure) "EXIT 1" else ""}
        )
    
    """.trimIndent()
    
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Wed Apr 24 08:17:56 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  3. src/packaging/common/scripts/prerm

        1)
            # Don't do anything on upgrade, because the preun script in redhat gets executed after the postinst (madness!)
        ;;
    
        *)
            echo "pre remove script called with unknown argument \`$1'" >&2
            exit 1
        ;;
    esac
    
    # Stops the service
    if [ "$STOP_REQUIRED" = "true" ]; then
        echo -n "Stopping fess service..."
        if command -v systemctl >/dev/null; then
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Jan 29 07:34:32 GMT 2018
    - 1.7K bytes
    - Viewed (1)
  4. src/packaging/common/scripts/postrm

            REMOVE_USER_AND_GROUP=true
        ;;
        1)
            # If $1=1 this is an upgrade
            IS_UPGRADE=true
        ;;
    
        *)
            echo "post remove script called with unknown argument \`$1'" >&2
            exit 1
        ;;
    esac
    
    # Sets the default values for fess variables used in this script
    FESS_USER="${packaging.fess.user}"
    FESS_GROUP="${packaging.fess.group}"
    PID_DIR="${packaging.fess.pid.dir}"
    
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Dec 10 01:24:02 GMT 2015
    - 2.2K bytes
    - Viewed (0)
  5. src/packaging/common/scripts/preinst

                        -d "$FESS_USER_HOME"  \
                        "$FESS_USER"
                echo " OK"
            fi
        ;;
    
        *)
            echo "pre install script called with unknown argument \`$1'" >&2
            exit 1
        ;;
    esac
    
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Dec 01 09:48:15 GMT 2016
    - 2.3K bytes
    - Viewed (0)
  6. 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)
  7. ci/official/envs/rbe

           But in .bazelrc, there is no "rbe_$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX".
           That setting must exist for this script to function correctly.
    EOF
      exit 1
    fi
    TFCI_BAZEL_COMMON_ARGS="$TFCI_BAZEL_COMMON_ARGS --config rbe_$TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX"
    
    # These flags share the user's gcloud credentials with the container, so that bazel
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Jan 10 19:39:41 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/middleware.md

    * It can do something to that **response** or run any needed code.
    * Then it returns the **response**.
    
    !!! note "Technical Details"
        If you have dependencies with `yield`, the exit code will run *after* the middleware.
    
        If there were any background tasks (documented later), they will run *after* all the middleware.
    
    ## Create a middleware
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/middleware.md

    * Sie kann etwas mit dieser **Response** tun oder beliebigen Code ausführen.
    * Dann gibt sie die **Response** zurück.
    
    !!! note "Technische Details"
        Wenn Sie Abhängigkeiten mit `yield` haben, wird der Exit-Code *nach* der Middleware ausgeführt.
    
        Wenn es Hintergrundaufgaben gab (später dokumentiert), werden sie *nach* allen Middlewares ausgeführt.
    
    ## Erstellung einer Middleware
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 23 11:26:59 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/packaging/common/scripts/postinst

            IS_UPGRADE=false
        ;;
        2)
            # If $1=1 this is an upgrade
            IS_UPGRADE=true
        ;;
    
        *)
            echo "post install script called with unknown argument \`$1'" >&2
            exit 1
        ;;
    esac
    
    if [ "x$IS_UPGRADE" != "xtrue" ]; then
        if command -v systemctl >/dev/null; then
    Plain Text
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Dec 10 01:24:02 GMT 2015
    - 3.1K bytes
    - Viewed (0)
Back to top