Skip to content

Commit e7ec8da

Browse files
authored
remove deprecated methods (#4)
motivation: no need in deprecated methods since we did not tag yet changes: remove deprecated start and startAndWait methods
1 parent 8643362 commit e7ec8da

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

Sources/Lifecycle/Lifecycle.swift

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ public class Lifecycle {
3737
self.shutdownGroup.enter()
3838
}
3939

40-
/// Starts the provided `LifecycleItem` array and waits (blocking) until a shutdown `Signal` is captured or `Lifecycle.shutdown` is called on another thread.
41-
/// Startup is performed in the order of items provided.
42-
///
43-
/// - parameters:
44-
/// - shutdownSignal: Defines what, if any, signals to trap for invoking shutdown.
45-
/// - installBacktrace: Defines if to install a crash signal trap that prints backtraces.
46-
@available(*, deprecated, message: "use startAndWait(configuration) instead")
47-
public func startAndWait(shutdownSignal: [Signal]? = [.TERM, .INT], installBacktrace: Bool = true) throws {
48-
try self.startAndWait(configuration: .init(shutdownSignal: shutdownSignal, installBacktrace: installBacktrace))
49-
}
50-
5140
/// Starts the provided `LifecycleItem` array and waits (blocking) until a shutdown `Signal` is captured or `Lifecycle.shutdown` is called on another thread.
5241
/// Startup is performed in the order of items provided.
5342
///
@@ -66,18 +55,6 @@ public class Lifecycle {
6655
self.shutdownGroup.wait()
6756
}
6857

69-
/// Starts the provided `LifecycleItem` array.
70-
/// Startup is performed in the order of items provided.
71-
///
72-
/// - parameters:
73-
/// - shutdownSignal: Defines what, if any, signals to trap for invoking shutdown.
74-
/// - installBacktrace: Defines if to install a crash signal trap that prints backtraces.
75-
/// - callback: The handler which is called after the start operation completes. The parameter will be `nil` on success and contain the `Error` otherwise.
76-
@available(*, deprecated, message: "use start(configuration) instead")
77-
public func start(shutdownSignal: [Signal]? = [.TERM, .INT], installBacktrace: Bool = true, callback: @escaping (Error?) -> Void) {
78-
self.start(configuration: .init(shutdownSignal: shutdownSignal, installBacktrace: installBacktrace), callback: callback)
79-
}
80-
8158
/// Starts the provided `LifecycleItem` array.
8259
/// Startup is performed in the order of items provided.
8360
///

0 commit comments

Comments
 (0)