- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for Exit (0.02 sec)
-
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
# Dependencies with yield { #dependencies-with-yield } FastAPI supports dependencies that do some <abbr title='sometimes also called "exit code", "cleanup code", "teardown code", "closing code", "context manager exit code", etc.'>extra steps after finishing</abbr>. To do this, use `yield` instead of `return`, and write the extra steps (code) after. /// tip Make sure to use `yield` one single time per dependency. /// /// note | Technical DetailsRegistered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 12.7K bytes - Viewed (0) -
.github/workflows/check-commits.yml
exit 1 fiRegistered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Thu Sep 04 22:13:34 UTC 2025 - 3K bytes - Viewed (0) -
cmd/metacache-set.go
defer ticker.Stop() var exit bool for !exit { select { case <-ticker.C: case <-ctx.Done(): exit = true } metaMu.Lock() meta := *mc.meta meta, err = o.updateMetacacheListing(meta, rpc) if err == nil && time.Since(meta.lastHandout) > metacacheMaxClientWait { cancel() exit = true meta.status = scanStateError
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/TestLocking.java
*/ public static void main(final String[] args) throws Exception { if (args.length < 1) { logger.error("usage: TestLocking [-t <numThreads>] [-i <numIter>] [-d <delay>] url"); System.exit(1); } final TestLocking t = new TestLocking(); t.ltime = System.currentTimeMillis(); for (int ai = 0; ai < args.length; ai++) { if (args[ai].equals("-t")) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
coordinatorWakeUpAt = now + minDelayNanos try { backend.coordinatorWait(this@TaskRunner, minDelayNanos) } catch (_: InterruptedException) { // Will cause all tasks to exit unless more are scheduled! cancelAll() } finally { coordinatorWaiting = false } } } } }Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 10.4K bytes - Viewed (0) -
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 (covered in the [Background Tasks](background-tasks.md){.internal-link target=_blank} section, you will see it later), they will run *after* all the middleware.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 4.1K bytes - Viewed (0) -
docs/debugging/healing-bin/main.go
FLAGS: {{range .VisibleFlags}}{{.}} {{end}} ` app.Flags = []cli.Flag{} app.Action = func(c *cli.Context) error { if !c.Args().Present() { cli.ShowAppHelpAndExit(c, 1) // last argument is exit code } ht := make(map[string]map[string]any) file := c.Args().Get(0) if strings.HasSuffix(file, ".zip") { var sz int64 f, err := os.Open(file) if err != nil { return err }Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 3.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
return connection.socket() } } return null } private fun timeoutExit(cause: IOException?): IOException? { if (timeoutEarlyExit) return cause if (!timeout.exit()) return cause val e = InterruptedIOException("timeout") if (cause != null) e.initCause(cause) return e } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 17.8K bytes - Viewed (0) -
cmd/common-main.go
fmt.Println("Refer to the docs here on how to run it as a Windows Service https://github.com/minio/minio-service/tree/master/windows") fmt.Println("Press the Enter Key to Exit") fmt.Scanln() os.Exit(1) } } logger.Init(GOPATH, GOROOT) logger.RegisterError(config.FmtError) t, _ := minioVersionToReleaseTime(Version) if !t.IsZero() { globalVersionUnix = uint64(t.Unix()) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 32.5K bytes - Viewed (3) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
boolean hasShared = shareList.stream().anyMatch(s -> s.toLowerCase().contains("shared")); assertTrue(hasPublic || hasShared, "Should contain expected shares"); return; // Success, exit retry loop } catch (SmbAuthException e) { // Some configurations may not allow share listing without specific permissions
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (0)