@@ -95,8 +95,8 @@ public struct LifecycleHandler {
95
95
}
96
96
}
97
97
98
- #if compiler(>=5.5 ) && canImport(_Concurrency )
99
- @available ( macOS 12 . 0 , * )
98
+ #if canImport(_Concurrency ) && compiler(>=5.5.2 )
99
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
100
100
extension LifecycleHandler {
101
101
public init ( _ handler: @escaping ( ) async throws -> Void ) {
102
102
self = LifecycleHandler { callback in
@@ -159,8 +159,8 @@ public struct LifecycleStartHandler<State> {
159
159
}
160
160
}
161
161
162
- #if compiler(>=5.5 ) && canImport(_Concurrency )
163
- @available ( macOS 12 . 0 , * )
162
+ #if canImport(_Concurrency ) && compiler(>=5.5.2 )
163
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
164
164
extension LifecycleStartHandler {
165
165
public init ( _ handler: @escaping ( ) async throws -> State ) {
166
166
self = LifecycleStartHandler { callback in
@@ -221,8 +221,8 @@ public struct LifecycleShutdownHandler<State> {
221
221
}
222
222
}
223
223
224
- #if compiler(>=5.5 ) && canImport(_Concurrency )
225
- @available ( macOS 12 . 0 , * )
224
+ #if canImport(_Concurrency ) && compiler(>=5.5.2 )
225
+ @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
226
226
extension LifecycleShutdownHandler {
227
227
public init ( _ handler: @escaping ( State ) async throws -> Void ) {
228
228
self = LifecycleShutdownHandler { state, callback in
0 commit comments