Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions Sources/Lifecycle/Lifecycle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,25 +218,6 @@ public extension ServiceLifecycle {
func registerShutdown(label: String, _ handler: LifecycleHandler) {
self.lifecycle.registerShutdown(label: label, handler)
}

/// Adds a `Task` to a `Tasks` collection.
///
/// - parameters:
/// - label: label of the item, useful for debugging.
/// - start: closure to perform the shutdown.
/// - shutdown: closure to perform the shutdown.
func register(label: String, start: @escaping () throws -> Void, shutdown: @escaping () throws -> Void) {
self.lifecycle.register(label: label, start: start, shutdown: shutdown)
}

/// Adds a `Task` to a `Tasks` collection.
///
/// - parameters:
/// - label: label of the item, useful for debugging.
/// - handler: closure to perform the shutdown.
func registerShutdown(label: String, _ handler: @escaping () throws -> Void) {
self.lifecycle.registerShutdown(label: label, handler)
}
}

extension ServiceLifecycle {
Expand Down