Skip to content

Commit 4cffe30

Browse files
committed
Update the availability annotations.
1 parent 6a0a681 commit 4cffe30

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

Sources/CombineInteroperability/FromCombine.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#if canImport(Combine)
22
import Combine
33

4+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
45
extension Publisher {
56
public func producer() -> SignalProducer<Output, Failure> {
67
return SignalProducer { observer, lifetime in

Sources/CombineInteroperability/ToCombine.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@
22
import Combine
33

44
extension SignalProducerConvertible {
5-
@available(macOS 10.15, *)
6-
@available(iOS 13.0, *)
7-
@available(tvOS 13.0, *)
8-
@available(macCatalyst 13.0, *)
9-
@available(watchOS 6.0, *)
5+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
106
public func publisher() -> ProducerPublisher<Value, Error> {
117
ProducerPublisher(base: producer)
128
}
139
}
1410

15-
@available(macOS 10.15, *)
16-
@available(iOS 13.0, *)
17-
@available(tvOS 13.0, *)
18-
@available(macCatalyst 13.0, *)
19-
@available(watchOS 6.0, *)
11+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
2012
public struct ProducerPublisher<Output, Failure: Swift.Error>: Publisher {
2113
public let base: SignalProducer<Output, Failure>
2214

Sources/CombineInteroperability/Utilities.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@
22
import Combine
33

44
extension Lifetime {
5+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
56
@discardableResult
67
public static func += <C: Cancellable>(lhs: Lifetime, rhs: C) -> Disposable? {
78
lhs.observeEnded(rhs.cancel)
89
}
910
}
1011

12+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
1113
extension AnyDisposable: Cancellable {
1214
public func cancel() {
1315
dispose()
1416
}
1517
}
1618

19+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
1720
extension SerialDisposable: Cancellable {
1821
public func cancel() {
1922
dispose()
2023
}
2124
}
2225

26+
@available(macOS 10.15, iOS 13.0, tvOS 13.0, macCatalyst 13.0, watchOS 6.0, *)
2327
extension CompositeDisposable: Cancellable {
2428
public func cancel() {
2529
dispose()

0 commit comments

Comments
 (0)