- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 318 for isShutdown (0.19 sec)
-
src/internal/poll/fd_posix.go
if n == 0 && err == nil && fd.ZeroReadIsEOF { return io.EOF } return err } // Shutdown wraps syscall.Shutdown. func (fd *FD) Shutdown(how int) error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Shutdown(fd.Sysfd, how) } // Fchown wraps syscall.Fchown. func (fd *FD) Fchown(uid, gid int) error { if err := fd.incref(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:17 UTC 2023 - 1.9K bytes - Viewed (0) -
pkg/kube/kclient/events.go
e.eventRecorder.Eventf(object, eventtype, reason, messageFmt, args...) } // Shutdown terminates the event recorder. This must be called upon completion of writing events, and events should not be // written once terminated. func (e *EventRecorder) Shutdown() { e.eventBroadcaster.Shutdown()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 22:23:28 UTC 2023 - 1.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/WebSocket.kt
* message buffer (16 MiB) will be rejected and trigger a [graceful shutdown][close] of this web * socket. This method returns false in that case, and in any other case where this web socket is * closing, closed, or canceled. * * This method returns immediately. */ fun send(bytes: ByteString): Boolean /** * Attempts to initiate a graceful shutdown of this web socket. Any already-enqueued messages will
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
pkg/tracing/tracing.go
// Returned is a shutdown function that should be called to ensure graceful shutdown. func Initialize() (func(), error) { exp, err := newExporter() if err != nil { return nil, err } tp := trace.NewTracerProvider( trace.WithBatcher(exp), trace.WithResource(newResource()), ) otel.SetTracerProvider(tp) return func() { if err := tp.Shutdown(context.Background()); err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jul 26 01:07:39 UTC 2023 - 3.9K bytes - Viewed (0) -
testing/smoke-test/src/smokeTest/resources/org/gradle/play/integtest/fixtures/external/basicplayapp/conf/routes.old
# Routes # Home page GET / controllers.Application.index GET /shutdown controllers.Application.shutdown # Map static resources from the /public folder to the /assets URL path
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 310 bytes - Viewed (0) -
docs/en/docs/advanced/testing-events.md
# Testing Events: startup - shutdown When you need your event handlers (`startup` and `shutdown`) to run in your tests, you can use the `TestClient` with a `with` statement: ```Python hl_lines="9-12 20-24" {!../../../docs_src/app_testing/tutorial003.py!}
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Aug 29 14:02:58 UTC 2020 - 262 bytes - Viewed (0) -
pkg/kube/informerfactory/factory.go
WaitForCacheSync(stopCh <-chan struct{}) bool // Shutdown marks a factory as shutting down. At that point no new // informers can be started anymore and Start will return without // doing anything. // // In addition, Shutdown blocks until all goroutines have terminated. For that // to happen, the close channel(s) that they were started with must be closed, // either before Shutdown gets called or while it is waiting. //
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 7.9K bytes - Viewed (0) -
docs/ko/docs/advanced/events.md
하나 이상의 이벤트 핸들러 함수를 추가할 수도 있습니다. 그리고 응용 프로그램은 모든 `startup` 이벤트 핸들러가 완료될 때까지 요청을 받지 않습니다. ## `shutdown` 이벤트 응용 프로그램이 종료될 때 실행하려는 함수를 추가하려면 `"shutdown"` 이벤트로 선언합니다: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!} ``` 이 예제에서 `shutdown` 이벤트 핸들러 함수는 `"Application shutdown"`이라는 텍스트가 적힌 `log.txt` 파일을 추가할 것입니다. !!! info "정보"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 22:35:55 UTC 2024 - 2.2K bytes - Viewed (0) -
docs/zh/docs/advanced/events.md
本例中,`startup` 事件处理器函数为项目数据库(只是**字典**)提供了一些初始值。 **FastAPI** 支持多个事件处理器函数。 只有所有 `startup` 事件处理器运行完毕,**FastAPI** 应用才开始接收请求。 ## `shutdown` 事件 使用 `shutdown` 事件声明 `app` 关闭时运行的函数: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!} ``` 此处,`shutdown` 事件处理器函数在 `log.txt` 中写入一行文本 `Application shutdown`。 !!! info "说明" `open()` 函数中,`mode="a"` 指的是**追加**。因此这行文本会添加在文件已有内容之后,不会覆盖之前的内容。 !!! tip "提示"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 1.7K bytes - Viewed (0) -
src/net/fd_posix.go
runtime.SetFinalizer(fd, nil) return fd.pfd.Close() } func (fd *netFD) shutdown(how int) error { err := fd.pfd.Shutdown(how) runtime.KeepAlive(fd) return wrapSyscallError("shutdown", err) } func (fd *netFD) closeRead() error { return fd.shutdown(syscall.SHUT_RD) } func (fd *netFD) closeWrite() error { return fd.shutdown(syscall.SHUT_WR) } func (fd *netFD) Read(p []byte) (n int, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 4.3K bytes - Viewed (0)