diff --git a/Sources/Guarantee.swift b/Sources/Guarantee.swift index 9297e1e..ce887cd 100644 --- a/Sources/Guarantee.swift +++ b/Sources/Guarantee.swift @@ -105,7 +105,7 @@ public extension Guarantee { return rg } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) func map(on: DispatchQueue? = conf.Q.map, flags: DispatchWorkItemFlags? = nil, _ keyPath: KeyPath) -> Guarantee { let rg = Guarantee(.pending) pipe { value in @@ -169,7 +169,7 @@ public extension Guarantee where T: Sequence { return map(on: on, flags: flags) { $0.map(transform) } } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) /** `Guarantee<[T]>` => `KeyPath` => `Guarantee<[U]>` @@ -218,7 +218,7 @@ public extension Guarantee where T: Sequence { } } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) /** `Guarantee<[T]>` => `KeyPath` => `Guarantee<[U]>` @@ -292,7 +292,7 @@ public extension Guarantee where T: Sequence { } } - #if swift(>=4) + #if swift(>=4) && !swift(>=5.2) /** `Guarantee<[T]>` => `KeyPath` => `Guarantee<[T]>`