You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `Lifecycle.Handler` is a container for an asynchronous closure defined as `(@escaping (Error?) -> Void) -> Void`
114
+
where `LifecycleHandler` is a container for an asynchronous closure defined as `(@escaping (Error?) -> Void) -> Void`
115
115
116
-
`Lifecycle.Handler` comes with static helpers named `async` and `sync` designed to help simplify the registration call to:
116
+
`LifecycleHandler` comes with static helpers named `async` and `sync` designed to help simplify the registration call to:
117
117
118
118
```swift
119
119
let foo =...
@@ -135,12 +135,12 @@ lifecycle.registerShutdown(
135
135
```
136
136
137
137
138
-
you can also register a collection of `Lifecycle.Task`s (less typical) using:
138
+
you can also register a collection of `LifecycleTask`s (less typical) using:
139
139
140
140
```swift
141
-
funcregister(_tasks: [Lifecycle.Task])
141
+
funcregister(_tasks: [LifecycleTask])
142
142
143
-
funcregister(_tasks: Lifecycle.Task...)
143
+
funcregister(_tasks: LifecycleTask...)
144
144
```
145
145
146
146
### Configuration
@@ -211,7 +211,7 @@ In more complex cases, when `Signal`-trapping-based shutdown is not appropriate,
211
211
212
212
In larger Applications (Services) `ComponentLifecycle` can be used to manage the lifecycle of subsystems, such that `ServiceLifecycle` can start and shutdown `ComponentLifecycle`s.
213
213
214
-
In fact, since `ComponentLifecycle` conforms to `Lifecycle.Task`,
214
+
In fact, since `ComponentLifecycle` conforms to `LifecycleTask`,
215
215
it can start and stop other `ComponentLifecycle`s, forming a tree. E.g.:
216
216
217
217
```swift
@@ -249,7 +249,7 @@ lifecycle.wait()
249
249
250
250
SwiftServiceLifecycle comes with a compatibility module designed to make managing SwiftNIO based resources easy.
251
251
252
-
Once you import `LifecycleNIOCompat` module, `Lifecycle.Handler` gains a static helper named `eventLoopFuture` designed to help simplify the registration call to:
252
+
Once you import `LifecycleNIOCompat` module, `LifecycleHandler` gains a static helper named `eventLoopFuture` designed to help simplify the registration call to:
0 commit comments