- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,931 for eventB (0.56 sec)
-
docs/zh/docs/advanced/events.md
使用 `startup` 事件声明 `app` 启动前运行的函数: ```Python hl_lines="8" {!../../../docs_src/events/tutorial001.py!} ``` 本例中,`startup` 事件处理器函数为项目数据库(只是**字典**)提供了一些初始值。 **FastAPI** 支持多个事件处理器函数。 只有所有 `startup` 事件处理器运行完毕,**FastAPI** 应用才开始接收请求。 ## `shutdown` 事件 使用 `shutdown` 事件声明 `app` 关闭时运行的函数: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 1.7K bytes - Viewed (0) -
docs/em/docs/advanced/events.md
```Python hl_lines="14-19" {!../../../docs_src/events/tutorial003.py!} ``` 🥇 🍕 🔢, ⏭ `yield`, 🔜 🛠️ **⏭** 🈸 ▶️. & 🍕 ⏮️ `yield` 🔜 🛠️ **⏮️** 🈸 ✔️ 🏁. ### 🔁 🔑 👨💼 🚥 👆 ✅, 🔢 🎀 ⏮️ `@asynccontextmanager`. 👈 🗜 🔢 🔘 🕳 🤙 "**🔁 🔑 👨💼**". ```Python hl_lines="1 13" {!../../../docs_src/events/tutorial003.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/WorkInProgressRendererTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 5.1K bytes - Viewed (0) -
docs/ko/docs/advanced/events.md
```Python hl_lines="8" {!../../../docs_src/events/tutorial001.py!} ``` 이 경우 `startup` 이벤트 핸들러 함수는 단순히 몇 가지 값으로 구성된 `dict` 형식의 "데이터베이스"를 초기화합니다. 하나 이상의 이벤트 핸들러 함수를 추가할 수도 있습니다. 그리고 응용 프로그램은 모든 `startup` 이벤트 핸들러가 완료될 때까지 요청을 받지 않습니다. ## `shutdown` 이벤트 응용 프로그램이 종료될 때 실행하려는 함수를 추가하려면 `"shutdown"` 이벤트로 선언합니다: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 22:35:55 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/apis/core/validation/events.go
} // "New" Events need to have EventTime set, so it's validating old object. if event.EventTime.Time == zeroTime { // Make sure event.Namespace and the involvedInvolvedObject.Namespace agree if len(event.InvolvedObject.Namespace) == 0 { // event.Namespace must also be empty (or "default", for compatibility with old clients) if event.Namespace != metav1.NamespaceNone && event.Namespace != metav1.NamespaceDefault {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Sep 01 19:47:37 UTC 2022 - 9.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/event.go
// to the bookmark event. // // note that we decided to extend the event // struct field to eliminate contention // between startWatching and processEvent isInitialEventsEndBookmark bool } // parseKV converts a KeyValue retrieved from an initial sync() listing to a synthetic isCreated event. func parseKV(kv *mvccpb.KeyValue) *event { return &event{ key: string(kv.Key), value: kv.Value, prevValue: nil,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 10:26:38 UTC 2023 - 2.3K bytes - Viewed (0) -
src/internal/trace/raw/event.go
import ( "strconv" "strings" "internal/trace/event" "internal/trace/version" ) // Event is a simple representation of a trace event. // // Note that this typically includes much more than just // timestamped events, and it also represents parts of the // trace format's framing. (But not interpreted.) type Event struct { Version version.Version Ev event.Type Args []uint64 Data []byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.4K bytes - Viewed (0) -
pkg/kubelet/events/event.go
) // Image manager event reason list const ( InvalidDiskCapacity = "InvalidDiskCapacity" FreeDiskSpaceFailed = "FreeDiskSpaceFailed" ) // Probe event reason list const ( ContainerUnhealthy = "Unhealthy" ContainerProbeWarning = "ProbeWarning" ) // Pod worker event reason list const ( FailedSync = "FailedSync" ) // Config event reason list const (
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 3.7K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Event.java
import org.apache.maven.api.annotations.Nonnull; /** * Event sent by maven during various phases of the build process. * Such events can be listened to using {@link Listener}s objects * registered in the {@link Session}. * * @since 4.0.0 */ @Experimental public interface Event { /** * Gets the type of the event. * * @return the type of the event, never {@code null} */ @Nonnull
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Mar 23 05:29:39 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/StyledTextOutputBackedRendererTest.groovy
RenderableOutputEvent event1 = new StyledTextOutputEvent(tenAm, 'category', LogLevel.INFO, null, 'message') RenderableOutputEvent event2 = new StyledTextOutputEvent(tenAm, 'category', LogLevel.INFO, null, toNative('\n')) when: renderer.onOutput(new LogLevelChangeEvent(LogLevel.DEBUG)) renderer.onOutput(event1) renderer.onOutput(event2) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 5.6K bytes - Viewed (0)