- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 74 for Exit (0.02 seconds)
-
docs/en/docs/advanced/advanced-dependencies.md
Using `Depends(scope="function")`, the exit code after `yield` is executed right after the *path operation function* is finished, before the response is sent back to the client. And when using `Depends(scope="request")` (the default), the exit code after `yield` is executed after the response is sent.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 9K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
/// ## Early exit and `scope` { #early-exit-and-scope } Normally the exit code of dependencies with `yield` is executed **after the response** is sent to the client.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 05 18:13:19 GMT 2026 - 12.6K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/dependencies.md
## Dependencies with `yield` and `scope` When using dependencies with `yield`, they can have a `scope` that defines when the exit code is run. Use the default scope `"request"` to run the exit code after the response is sent back. ```python from typing import Annotated from fastapi import Depends, FastAPI app = FastAPI() def get_db():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 3.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java
ByteArrayOutputStream errContent = new ByteArrayOutputStream(); System.setErr(new PrintStream(errContent)); String[] args = { "--help" }; // Note: main calls System.exit, so we can't test it directly // Instead, we test the parsing logic separately System.setErr(originalErr); } catch (Exception e) { System.setErr(originalErr); }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.2K bytes - Click Count (0) -
.pre-commit-config.yaml
- id: local-ruff-check name: ruff check entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix require_serial: true language: unsupported types: [python] - id: local-ruff-format name: ruff format entry: uv run ruff format --force-exclude --exit-non-zero-on-format require_serial: true language: unsupported types: [python]Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Apr 03 12:06:36 GMT 2026 - 2.6K bytes - Click Count (1) -
gradlew
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { echo "$*" } >&2 die () { echo echo "$*" echo exit 1 } >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=falseCreated: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 08:59:10 GMT 2026 - 8.5K bytes - Click Count (0) -
.github/workflows/tests.yml
MSSQL_SA_PASSWORD: LoremIpsum86 ports: - 9930:1433 options: >- --health-cmd="/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P ${MSSQL_SA_PASSWORD} -N -C -l 30 -Q \"SELECT 1\" || exit 1" --health-start-period 10s --health-interval 10s --health-timeout 5s --health-retries 10 steps: - name: Set up Go 1.x uses: actions/setup-go@v5Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Mar 23 10:05:06 GMT 2026 - 9K bytes - Click Count (0) -
.teamcity/src/main/kotlin/configurations/GradleBuildConfigurationDefaults.kt
${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()Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Mar 13 05:03:56 GMT 2026 - 8.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UncaughtExceptionHandlersTest.java
protected void setUp() { runtimeMock = mock(RuntimeWrapper.class); } public void testExiter() { new Exiter(runtimeMock).uncaughtException(new Thread(), new Exception()); verify(runtimeMock).exit(1); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java
assertThat(expected) .hasMessageThat() .isEqualTo("I bet you didn't think Thread.interrupt could throw"); /* * We need to wait for the runner to exit. It used to be that the runner would get stuck in the * busy loop when interrupt threw. * * While we're at it, we confirm that the interrupt happened as expected. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.2K bytes - Click Count (0)