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
Copy file name to clipboardExpand all lines: Sources/Lifecycle/Lifecycle.swift
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,8 @@ public struct LifecycleHandler {
81
81
82
82
// MARK: - ServiceLifecycle
83
83
84
+
/// `ServiceLifecycle` provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting.
85
+
/// By default, also install shutdown hooks based on `Signal` and backtraces.
84
86
publicstructServiceLifecycle{
85
87
privateletconfiguration:Configuration
86
88
@@ -194,7 +196,7 @@ extension ServiceLifecycle {
194
196
}
195
197
}
196
198
197
-
extensionServiceLifecycle:LifecycleRegistrar{
199
+
extensionServiceLifecycle:LifecycleTasksConainer{
198
200
publicfunc register(_ tasks:[LifecycleTask]){
199
201
self.underlying.register(tasks)
200
202
}
@@ -234,7 +236,7 @@ struct ShutdownError: Error {
234
236
235
237
// MARK: - ComponentLifecycle
236
238
237
-
/// `Lifecycle` provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting.
239
+
/// `ComponentLifecycle` provides a basic mechanism to cleanly startup and shutdown a subsystem in a larger application, freeing resources in order before exiting.
238
240
publicclassComponentLifecycle:LifecycleTask{
239
241
publicletlabel:String
240
242
privateletlogger:Logger
@@ -449,7 +451,7 @@ public class ComponentLifecycle: LifecycleTask {
0 commit comments