diff --git a/combine-generated-interface.swift b/combine-generated-interface.swift
index ef4471f..2addd6c 100644
--- a/combine-generated-interface.swift
+++ b/combine-generated-interface.swift
@@ -1,6 +1,7 @@
import Darwin
import _Concurrency
import _StringProcessing
+import _SwiftConcurrencyShims
/// A type-erasing cancellable object that executes a provided closure when canceled.
///
@@ -34,8 +35,10 @@ final public class AnyCancellable : Cancellable, Hashable {
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
/// with each of these components.
///
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
- /// compile-time error in the future.
+ /// - Important: In your implementation of `hash(into:)`,
+ /// don't call `finalize()` on the `hasher` instance provided,
+ /// or replace it with a different instance.
+ /// Doing so may become a compile-time error in the future.
///
/// - Parameter hasher: The hasher to use when combining the components
/// of this instance.
@@ -55,6 +58,7 @@ final public class AnyCancellable : Cancellable, Hashable {
///
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
+ /// The compiler provides an implementation for `hashValue` for you.
final public var hashValue: Int { get }
}
@@ -338,8 +342,10 @@ public struct CombineIdentifier : Hashable, CustomStringConvertible {
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
/// with each of these components.
///
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
- /// compile-time error in the future.
+ /// - Important: In your implementation of `hash(into:)`,
+ /// don't call `finalize()` on the `hasher` instance provided,
+ /// or replace it with a different instance.
+ /// Doing so may become a compile-time error in the future.
///
/// - Parameter hasher: The hasher to use when combining the components
/// of this instance.
@@ -362,6 +368,7 @@ public struct CombineIdentifier : Hashable, CustomStringConvertible {
///
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
+ /// The compiler provides an implementation for `hashValue` for you.
public var hashValue: Int { get }
}
@@ -891,6 +898,7 @@ public struct ImmediateScheduler : Scheduler {
/// Performs the action at some time after the specified date, at the specified frequency, optionally taking into account tolerance if possible.
///
/// The immediate scheduler ignores `date` and performs the action immediately.
+ @discardableResult
public func schedule(after date: ImmediateScheduler.SchedulerTimeType, interval: ImmediateScheduler.SchedulerTimeType.Stride, tolerance: ImmediateScheduler.SchedulerTimeType.Stride, options: ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Void) -> Cancellable
}
@@ -1885,6 +1893,19 @@ extension Publisher {
/// - Returns: A publisher that receives and combines elements from this and another publisher.
public func combineLatest
(_ other: P) -> Publishers.CombineLatest where P : Publisher, Self.Failure == P.Failure
+ /// Subscribes to an additional publisher and invokes a closure upon receiving output from either publisher.
+ ///
+ /// Use `combineLatest(_:)` to combine the current and one additional publisher and transform them using a closure you specify to publish a new value to the downstream.
+ ///
+ /// > Tip: The combined publisher doesn't produce elements until each of its upstream publishers publishes at least one element.
+ ///
+ /// The combined publisher passes through any requests to *all* upstream publishers. However, it still obeys the demand-fulfilling rule of only sending the request amount downstream. If the demand isn’t `.unlimited`, it drops values from upstream publishers. It implements this by using a buffer size of 1 for each upstream, and holds the most-recent value in each buffer.
+ ///
+ /// In the example below, `combineLatest()` receives the most-recent values published by the two publishers, it multiplies them together, and republishes the result:
+ ///
+ /// let pub1 = PassthroughSubject()
+ /// let pub2 = PassthroughSubject()
+ ///
/// cancellable = pub1
/// .combineLatest(pub2) { (first, second) in
/// return first * second
@@ -2146,7 +2167,7 @@ extension Publisher {
/// - prefix: A string —- which defaults to empty -— with which to prefix all log messages.
/// - stream: A stream for text output that receives messages, and which directs output to the console by default. A custom stream can be used to log messages to other destinations.
/// - Returns: A publisher that prints log messages for all publishing events.
- public func print(_ prefix: String = "", to stream: TextOutputStream? = nil) -> Publishers.Print
+ public func print(_ prefix: String = "", to stream: (TextOutputStream)? = nil) -> Publishers.Print
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -5371,14 +5392,14 @@ extension Publishers {
/// The publisher from which this publisher receives elements.
public let upstream: Upstream
- public let stream: TextOutputStream?
+ public let stream: (TextOutputStream)?
/// Creates a publisher that prints log messages for all publishing events.
///
/// - Parameters:
/// - upstream: The publisher from which this publisher receives elements.
/// - prefix: A string with which to prefix all log messages.
- public init(upstream: Upstream, prefix: String, to stream: TextOutputStream? = nil)
+ public init(upstream: Upstream, prefix: String, to stream: (TextOutputStream)? = nil)
/// Attaches the specified subscriber to this publisher.
///
@@ -7445,8 +7466,10 @@ extension Publishers {
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
/// with each of these components.
///
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
- /// compile-time error in the future.
+ /// - Important: In your implementation of `hash(into:)`,
+ /// don't call `finalize()` on the `hasher` instance provided,
+ /// or replace it with a different instance.
+ /// Doing so may become a compile-time error in the future.
///
/// - Parameter hasher: The hasher to use when combining the components
/// of this instance.
@@ -7459,6 +7482,7 @@ extension Publishers {
///
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
+ /// The compiler provides an implementation for `hashValue` for you.
public var hashValue: Int { get }
}
@@ -9160,8 +9184,10 @@ extension Subscribers {
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
/// with each of these components.
///
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
- /// compile-time error in the future.
+ /// - Important: In your implementation of `hash(into:)`,
+ /// don't call `finalize()` on the `hasher` instance provided,
+ /// or replace it with a different instance.
+ /// Doing so may become a compile-time error in the future.
///
/// - Parameter hasher: The hasher to use when combining the components
/// of this instance.
@@ -9174,6 +9200,7 @@ extension Subscribers {
///
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
+ /// The compiler provides an implementation for `hashValue` for you.
public var hashValue: Int { get }
}
}
@@ -9262,8 +9289,10 @@ extension Subscribers.Completion : Hashable where Failure : Hashable {
/// in your type's `==` operator implementation. Call `hasher.combine(_:)`
/// with each of these components.
///
- /// - Important: Never call `finalize()` on `hasher`. Doing so may become a
- /// compile-time error in the future.
+ /// - Important: In your implementation of `hash(into:)`,
+ /// don't call `finalize()` on the `hasher` instance provided,
+ /// or replace it with a different instance.
+ /// Doing so may become a compile-time error in the future.
///
/// - Parameter hasher: The hasher to use when combining the components
/// of this instance.
@@ -9276,6 +9305,7 @@ extension Subscribers.Completion : Hashable where Failure : Hashable {
///
/// - Important: `hashValue` is deprecated as a `Hashable` requirement. To
/// conform to `Hashable`, implement the `hash(into:)` requirement instead.
+ /// The compiler provides an implementation for `hashValue` for you.
public var hashValue: Int { get }
}
diff --git a/combine.swiftinterface b/combine.swiftinterface
index d7718e9..277e3ea 100644
--- a/combine.swiftinterface
+++ b/combine.swiftinterface
@@ -1,12 +1,12 @@
-// From /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Combine.framework/Versions/A/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface
// swift-interface-format-version: 1.0
-// swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.134.3 clang-1400.0.29.51)
-// swift-module-flags: -target x86_64-apple-ios16.2-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -library-level api -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -module-name Combine -disable-availability-checking
-// swift-module-flags-ignorable: -enable-bare-slash-regex -user-module-version 310
+// swift-compiler-version: Apple Swift version 5.9 (swiftlang-5.9.0.123.203 clang-1500.0.37.1)
+// swift-module-flags: -target x86_64-apple-ios17.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -library-level api -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -module-name Combine
+// swift-module-flags-ignorable: -enable-bare-slash-regex -user-module-version 312
import Darwin
import Swift
import _Concurrency
import _StringProcessing
+import _SwiftConcurrencyShims
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
public func multicast(_ createSubject: @escaping () -> S) -> Combine.Publishers.Multicast where S : Combine.Subject, Self.Failure == S.Failure, Self.Output == S.Output
@@ -22,7 +22,7 @@ extension Combine.Publishers {
public init(upstream: Upstream, createSubject: @escaping () -> SubjectType)
@objc deinit
final public func receive(subscriber: S) where S : Combine.Subscriber, SubjectType.Failure == S.Failure, SubjectType.Output == S.Input
- final public func connect() -> Combine.Cancellable
+ final public func connect() -> any Combine.Cancellable
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -38,7 +38,7 @@ public enum Subscriptions {
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Subscriptions {
- public static var empty: Combine.Subscription {
+ public static var empty: any Combine.Subscription {
get
}
}
@@ -120,7 +120,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Combine.Publishers.TryDropWhile.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryDropWhile.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -146,14 +146,14 @@ public struct Record : Combine.Publisher where Failure : Swift.
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Record.Recording : Swift.Codable where Output : Swift.Decodable, Output : Swift.Encodable, Failure : Swift.Decodable, Failure : Swift.Encodable {
- public init(from decoder: Swift.Decoder) throws
- public func encode(into encoder: Swift.Encoder) throws
- public func encode(to encoder: Swift.Encoder) throws
+ public init(from decoder: any Swift.Decoder) throws
+ public func encode(into encoder: any Swift.Encoder) throws
+ public func encode(to encoder: any Swift.Encoder) throws
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Record : Swift.Codable where Output : Swift.Decodable, Output : Swift.Encodable, Failure : Swift.Decodable, Failure : Swift.Encodable {
- public func encode(to encoder: Swift.Encoder) throws
- public init(from decoder: Swift.Decoder) throws
+ public func encode(to encoder: any Swift.Encoder) throws
+ public init(from decoder: any Swift.Decoder) throws
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
@@ -176,7 +176,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let isIncluded: (Upstream.Output) throws -> Swift.Bool
public init(upstream: Upstream, isIncluded: @escaping (Upstream.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -191,7 +191,7 @@ extension Combine.Publishers.TryFilter {
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
- public func breakpoint(receiveSubscription: ((Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Self.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Bool)? = nil) -> Combine.Publishers.Breakpoint
+ public func breakpoint(receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Self.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Bool)? = nil) -> Combine.Publishers.Breakpoint
public func breakpointOnError() -> Combine.Publishers.Breakpoint
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -200,10 +200,10 @@ extension Combine.Publishers {
public typealias Output = Upstream.Output
public typealias Failure = Upstream.Failure
public let upstream: Upstream
- public let receiveSubscription: ((Combine.Subscription) -> Swift.Bool)?
+ public let receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)?
public let receiveOutput: ((Upstream.Output) -> Swift.Bool)?
public let receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Bool)?
- public init(upstream: Upstream, receiveSubscription: ((Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Upstream.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Bool)? = nil)
+ public init(upstream: Upstream, receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Upstream.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Bool)? = nil)
public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input
}
}
@@ -236,7 +236,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Upstream.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, S.Failure == Swift.Error, S.Input == Swift.Bool
+ public func receive(subscriber: S) where S : Combine.Subscriber, S.Failure == any Swift.Error, S.Input == Swift.Bool
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -267,7 +267,7 @@ extension Combine.Subscribers {
}
public init(receiveCompletion: @escaping ((Combine.Subscribers.Completion) -> Swift.Void), receiveValue: @escaping ((Input) -> Swift.Void))
@objc deinit
- final public func receive(subscription: Combine.Subscription)
+ final public func receive(subscription: any Combine.Subscription)
final public func receive(_ value: Input) -> Combine.Subscribers.Demand
final public func receive(completion: Combine.Subscribers.Completion)
final public func cancel()
@@ -279,7 +279,7 @@ extension Combine.Subscribers {
@inline(__always) @inlinable internal init() {}
@objc @inline(__always) @inlinable deinit {}
@usableFromInline
- internal func receive(subscription: Combine.Subscription)
+ internal func receive(subscription: any Combine.Subscription)
@usableFromInline
internal func receive(_ input: Input) -> Combine.Subscribers.Demand
@usableFromInline
@@ -294,7 +294,7 @@ extension Combine.Subscribers {
self.base = base
}
@objc @inlinable deinit {}
- @inlinable override final internal func receive(subscription: Combine.Subscription) {
+ @inlinable override final internal func receive(subscription: any Combine.Subscription) {
base.receive(subscription: subscription)
}
@inlinable override final internal func receive(_ input: Combine.AnySubscriberBox .Input) -> Combine.Subscribers.Demand {
@@ -308,18 +308,18 @@ extension Combine.Subscribers {
@usableFromInline
@_fixed_layout final internal class ClosureBasedAnySubscriber : Combine.AnySubscriberBase where Failure : Swift.Error {
@usableFromInline
- final internal let receiveSubscriptionThunk: (Combine.Subscription) -> Swift.Void
+ final internal let receiveSubscriptionThunk: (any Combine.Subscription) -> Swift.Void
@usableFromInline
final internal let receiveValueThunk: (Input) -> Combine.Subscribers.Demand
@usableFromInline
final internal let receiveCompletionThunk: (Combine.Subscribers.Completion) -> Swift.Void
- @inlinable internal init(_ rcvSubscription: @escaping (Combine.Subscription) -> Swift.Void, _ rcvValue: @escaping (Input) -> Combine.Subscribers.Demand, _ rcvCompletion: @escaping (Combine.Subscribers.Completion) -> Swift.Void) {
+ @inlinable internal init(_ rcvSubscription: @escaping (any Combine.Subscription) -> Swift.Void, _ rcvValue: @escaping (Input) -> Combine.Subscribers.Demand, _ rcvCompletion: @escaping (Combine.Subscribers.Completion) -> Swift.Void) {
receiveSubscriptionThunk = rcvSubscription
receiveValueThunk = rcvValue
receiveCompletionThunk = rcvCompletion
}
@objc @inlinable deinit {}
- @inlinable override final internal func receive(subscription: Combine.Subscription) {
+ @inlinable override final internal func receive(subscription: any Combine.Subscription) {
receiveSubscriptionThunk(subscription)
}
@inlinable override final internal func receive(_ input: Input) -> Combine.Subscribers.Demand {
@@ -386,7 +386,7 @@ extension Combine.Subscribers {
}
}
public init(_ s: S) where Input == S.Output, Failure == S.Failure, S : Combine.Subject
- @inline(__always) @inlinable public init(receiveSubscription: ((Combine.Subscription) -> Swift.Void)? = nil, receiveValue: ((Input) -> Combine.Subscribers.Demand)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Void)? = nil) {
+ @inline(__always) @inlinable public init(receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveValue: ((Input) -> Combine.Subscribers.Demand)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Void)? = nil) {
box = ClosureBasedAnySubscriber(
receiveSubscription ?? { _ in },
receiveValue ?? { _ in return .none },
@@ -406,7 +406,7 @@ extension Combine.Subscribers {
return "Anonymous AnySubscriber"
}
}
- @inline(__always) @inlinable public func receive(subscription: Combine.Subscription) {
+ @inline(__always) @inlinable public func receive(subscription: any Combine.Subscription) {
box.receive(subscription: subscription)
}
@inline(__always) @inlinable public func receive(_ value: Input) -> Combine.Subscribers.Demand {
@@ -441,7 +441,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Combine.Publishers.TryRemoveDuplicates.Output, Combine.Publishers.TryRemoveDuplicates.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryRemoveDuplicates.Output, Combine.Publishers.TryRemoveDuplicates.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -460,14 +460,14 @@ extension Combine.Publishers {
public typealias Failure = Swift.Error
public let upstream: Upstream
public init(upstream: Upstream, decoder: Coder)
- public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Error
+ public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error
}
public struct Encode : Combine.Publisher where Upstream : Combine.Publisher, Coder : Combine.TopLevelEncoder, Upstream.Output : Swift.Encodable {
public typealias Failure = Swift.Error
public typealias Output = Coder.Output
public let upstream: Upstream
public init(upstream: Upstream, encoder: Coder)
- public func receive(subscriber: S) where S : Combine.Subscriber, Coder.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Coder.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -502,7 +502,7 @@ extension Combine.Just where Output : Swift.Equatable {
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Just {
public func allSatisfy(_ predicate: (Output) -> Swift.Bool) -> Combine.Just
- public func tryAllSatisfy(_ predicate: (Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryAllSatisfy(_ predicate: (Output) throws -> Swift.Bool) -> Swift.Result.Publisher
public func collect() -> Combine.Just<[Output]>
public func compactMap(_ transform: (Output) -> T?) -> Swift.Optional.Publisher
public func min(by areInIncreasingOrder: (Output, Output) -> Swift.Bool) -> Combine.Just
@@ -512,7 +512,7 @@ extension Combine.Just {
public func append(_ elements: Output...) -> Combine.Publishers.Sequence<[Output], Combine.Just.Failure>
public func append(_ elements: S) -> Combine.Publishers.Sequence<[Output], Combine.Just.Failure> where Output == S.Element, S : Swift.Sequence
public func contains(where predicate: (Output) -> Swift.Bool) -> Combine.Just
- public func tryContains(where predicate: (Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryContains(where predicate: (Output) throws -> Swift.Bool) -> Swift.Result.Publisher
public func count() -> Combine.Just
public func dropFirst(_ count: Swift.Int = 1) -> Swift.Optional.Publisher
public func drop(while predicate: (Output) -> Swift.Bool) -> Swift.Optional.Publisher
@@ -523,28 +523,28 @@ extension Combine.Just {
public func filter(_ isIncluded: (Output) -> Swift.Bool) -> Swift.Optional.Publisher
public func ignoreOutput() -> Combine.Empty.Failure>
public func map(_ transform: (Output) -> T) -> Combine.Just
- public func tryMap(_ transform: (Output) throws -> T) -> Swift.Result.Publisher
+ public func tryMap(_ transform: (Output) throws -> T) -> Swift.Result.Publisher
public func mapError(_ transform: (Combine.Just.Failure) -> E) -> Swift.Result.Publisher where E : Swift.Error
public func output(at index: Swift.Int) -> Swift.Optional.Publisher
public func output(in range: R) -> Swift.Optional.Publisher where R : Swift.RangeExpression, R.Bound == Swift.Int
public func prefix(_ maxLength: Swift.Int) -> Swift.Optional.Publisher
public func prefix(while predicate: (Output) -> Swift.Bool) -> Swift.Optional.Publisher
public func reduce(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift.Result.Failure>.Publisher
- public func tryReduce(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result.Publisher
+ public func tryReduce(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result.Publisher
public func removeDuplicates(by predicate: (Output, Output) -> Swift.Bool) -> Combine.Just
- public func tryRemoveDuplicates(by predicate: (Output, Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryRemoveDuplicates(by predicate: (Output, Output) throws -> Swift.Bool) -> Swift.Result.Publisher
public func replaceError(with output: Output) -> Combine.Just
public func replaceEmpty(with output: Output) -> Combine.Just
public func retry(_ times: Swift.Int) -> Combine.Just
public func scan(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift.Result.Failure>.Publisher
- public func tryScan(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result.Publisher
+ public func tryScan(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result.Publisher
public func setFailureType(to failureType: E.Type) -> Swift.Result.Publisher where E : Swift.Error
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
final public class PassthroughSubject : Combine.Subject where Failure : Swift.Error {
public init()
@objc deinit
- final public func send(subscription: Combine.Subscription)
+ final public func send(subscription: any Combine.Subscription)
final public func receive(subscriber: __owned S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber
final public func send(_ input: Output)
final public func send(completion: Combine.Subscribers.Completion)
@@ -640,7 +640,7 @@ extension Combine.Publishers {
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
- public func print(_ prefix: Swift.String = "", to stream: Swift.TextOutputStream? = nil) -> Combine.Publishers.Print
+ public func print(_ prefix: Swift.String = "", to stream: (any Swift.TextOutputStream)? = nil) -> Combine.Publishers.Print
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publishers {
@@ -649,8 +649,8 @@ extension Combine.Publishers {
public typealias Failure = Upstream.Failure
public let prefix: Swift.String
public let upstream: Upstream
- public let stream: Swift.TextOutputStream?
- public init(upstream: Upstream, prefix: Swift.String, to stream: Swift.TextOutputStream? = nil)
+ public let stream: (any Swift.TextOutputStream)?
+ public init(upstream: Upstream, prefix: Swift.String, to stream: (any Swift.TextOutputStream)? = nil)
public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input
}
}
@@ -695,7 +695,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Combine.Publishers.TryPrefixWhile.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryPrefixWhile.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -810,7 +810,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Upstream.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, S.Failure == Swift.Error, S.Input == Swift.Bool
+ public func receive(subscriber: S) where S : Combine.Subscriber, S.Failure == any Swift.Error, S.Input == Swift.Bool
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -869,12 +869,12 @@ extension Combine.Publisher where Self.Failure == Swift.Never {
#if compiler(>=5.3) && $PrimaryAssociatedTypes2
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public protocol ConnectablePublisher : Combine.Publisher {
- func connect() -> Combine.Cancellable
+ func connect() -> any Combine.Cancellable
}
#else
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public protocol ConnectablePublisher : Combine.Publisher {
- func connect() -> Combine.Cancellable
+ func connect() -> any Combine.Cancellable
}
#endif
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -888,7 +888,7 @@ extension Combine.Publishers {
public typealias Failure = Upstream.Failure
public init(upstream: Upstream)
public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input
- public func connect() -> Combine.Cancellable
+ public func connect() -> any Combine.Cancellable
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -960,7 +960,7 @@ public enum Subscribers {
public protocol Subscriber : Combine.CustomCombineIdentifierConvertible {
associatedtype Input
associatedtype Failure : Swift.Error
- func receive(subscription: Combine.Subscription)
+ func receive(subscription: any Combine.Subscription)
func receive(_ input: Self.Input) -> Combine.Subscribers.Demand
func receive(completion: Combine.Subscribers.Completion)
}
@@ -969,7 +969,7 @@ public protocol Subscriber : Combine.CustomCombineIdentifierConv
public protocol Subscriber : Combine.CustomCombineIdentifierConvertible {
associatedtype Input
associatedtype Failure : Swift.Error
- func receive(subscription: Combine.Subscription)
+ func receive(subscription: any Combine.Subscription)
func receive(_ input: Self.Input) -> Combine.Subscribers.Demand
func receive(completion: Combine.Subscribers.Completion)
}
@@ -994,11 +994,11 @@ extension Combine.Subscribers.Completion : Swift.Hashable where Failure : Swift.
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Subscribers.Completion : Swift.Encodable where Failure : Swift.Encodable {
- public func encode(to encoder: Swift.Encoder) throws
+ public func encode(to encoder: any Swift.Encoder) throws
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Subscribers.Completion : Swift.Decodable where Failure : Swift.Decodable {
- public init(from decoder: Swift.Decoder) throws
+ public init(from decoder: any Swift.Decoder) throws
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Subscribers {
@@ -1238,8 +1238,8 @@ extension Combine.Subscribers {
}
}
}
- public init(from decoder: Swift.Decoder) throws
- public func encode(to encoder: Swift.Encoder) throws
+ public init(from decoder: any Swift.Decoder) throws
+ public func encode(to encoder: any Swift.Encoder) throws
public static func == (a: Combine.Subscribers.Demand, b: Combine.Subscribers.Demand) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
@@ -1287,31 +1287,31 @@ extension Combine.Publishers {
public protocol _Introspection : AnyObject {
func willReceive(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input
func didReceive
(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input
- func willReceive(subscriber: S, subscription: Combine.Subscription) where S : Combine.Subscriber
- func didReceive(subscriber: S, subscription: Combine.Subscription) where S : Combine.Subscriber
+ func willReceive(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber
+ func didReceive(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber
func willReceive(subscriber: S, input: S.Input) where S : Combine.Subscriber
func didReceive(subscriber: S, input: S.Input, resultingDemand: Combine.Subscribers.Demand) where S : Combine.Subscriber
func willReceive(subscriber: S, completion: Combine.Subscribers.Completion) where S : Combine.Subscriber
func didReceive(subscriber: S, completion: Combine.Subscribers.Completion) where S : Combine.Subscriber
- func willRequest(subscription: Combine.Subscription, _ demand: Combine.Subscribers.Demand)
- func didRequest(subscription: Combine.Subscription, _ demand: Combine.Subscribers.Demand)
- func willCancel(subscription: Combine.Subscription)
- func didCancel(subscription: Combine.Subscription)
+ func willRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand)
+ func didRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand)
+ func willCancel(subscription: any Combine.Subscription)
+ func didCancel(subscription: any Combine.Subscription)
}
@available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *)
extension Combine._Introspection {
public func willReceive(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input
public func didReceive
(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input
- public func willReceive(subscriber: S, subscription: Combine.Subscription) where S : Combine.Subscriber
- public func didReceive(subscriber: S, subscription: Combine.Subscription) where S : Combine.Subscriber
+ public func willReceive(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber
+ public func didReceive(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber
public func willReceive(subscriber: S, input: S.Input) where S : Combine.Subscriber
public func didReceive(subscriber: S, input: S.Input, resultingDemand: Combine.Subscribers.Demand) where S : Combine.Subscriber
public func willReceive(subscriber: S, completion: Combine.Subscribers.Completion) where S : Combine.Subscriber
public func didReceive(subscriber: S, completion: Combine.Subscribers.Completion) where S : Combine.Subscriber
- public func willRequest(subscription: Combine.Subscription, _ demand: Combine.Subscribers.Demand)
- public func didRequest(subscription: Combine.Subscription, _ demand: Combine.Subscribers.Demand)
- public func willCancel(subscription: Combine.Subscription)
- public func didCancel(subscription: Combine.Subscription)
+ public func willRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand)
+ public func didRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand)
+ public func willCancel(subscription: any Combine.Subscription)
+ public func didCancel(subscription: any Combine.Subscription)
public func enable()
public func disable()
public var isEnabled: Swift.Bool {
@@ -1386,14 +1386,14 @@ extension Combine.Publishers {
public protocol Subject : AnyObject, Combine.Publisher {
func send(_ value: Self.Output)
func send(completion: Combine.Subscribers.Completion)
- func send(subscription: Combine.Subscription)
+ func send(subscription: any Combine.Subscription)
}
#else
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
public protocol Subject : AnyObject, Combine.Publisher {
func send(_ value: Self.Output)
func send(completion: Combine.Subscribers.Completion)
- func send(subscription: Combine.Subscription)
+ func send(subscription: any Combine.Subscription)
}
#endif
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1425,7 +1425,7 @@ extension Combine.Publishers {
public let initial: Output
public let nextPartialResult: (Output, Upstream.Output) throws -> Output
public init(upstream: Upstream, initial: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output)
- public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Error
+ public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1447,7 +1447,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let transform: (Upstream.Output) throws -> Output?
public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output?)
- public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Error
+ public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1644,30 +1644,30 @@ extension Swift.Result.Publisher where Success : Swift.Comparable {
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Swift.Result.Publisher {
public func allSatisfy(_ predicate: (Swift.Result.Publisher.Output) -> Swift.Bool) -> Swift.Result.Publisher
- public func tryAllSatisfy(_ predicate: (Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryAllSatisfy(_ predicate: (Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher
public func collect() -> Swift.Result<[Swift.Result.Publisher.Output], Failure>.Publisher
public func min(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) -> Swift.Bool) -> Swift.Result.Publisher.Output, Failure>.Publisher
- public func tryMin(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, Swift.Error>.Publisher
+ public func tryMin(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, any Swift.Error>.Publisher
public func max(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) -> Swift.Bool) -> Swift.Result.Publisher.Output, Failure>.Publisher
- public func tryMax(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, Swift.Error>.Publisher
+ public func tryMax(by areInIncreasingOrder: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, any Swift.Error>.Publisher
public func contains(where predicate: (Swift.Result.Publisher.Output) -> Swift.Bool) -> Swift.Result.Publisher
- public func tryContains(where predicate: (Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryContains(where predicate: (Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher
public func count() -> Swift.Result.Publisher
public func first() -> Swift.Result.Publisher.Output, Failure>.Publisher
public func last() -> Swift.Result.Publisher.Output, Failure>.Publisher
public func ignoreOutput() -> Combine.Empty.Publisher.Output, Failure>
public func map(_ transform: (Swift.Result.Publisher.Output) -> T) -> Swift.Result.Publisher
- public func tryMap(_ transform: (Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
+ public func tryMap(_ transform: (Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
public func mapError(_ transform: (Failure) -> E) -> Swift.Result.Publisher.Output, E>.Publisher where E : Swift.Error
public func reduce(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) -> T) -> Swift.Result.Publisher
- public func tryReduce(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
+ public func tryReduce(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
public func removeDuplicates(by predicate: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) -> Swift.Bool) -> Swift.Result.Publisher.Output, Failure>.Publisher
- public func tryRemoveDuplicates(by predicate: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, Swift.Error>.Publisher
+ public func tryRemoveDuplicates(by predicate: (Swift.Result.Publisher.Output, Swift.Result.Publisher.Output) throws -> Swift.Bool) -> Swift.Result.Publisher.Output, any Swift.Error>.Publisher
public func replaceError(with output: Swift.Result.Publisher.Output) -> Swift.Result.Publisher.Output, Swift.Never>.Publisher
public func replaceEmpty(with output: Swift.Result.Publisher.Output) -> Swift.Result.Publisher.Output, Failure>.Publisher
public func retry(_ times: Swift.Int) -> Swift.Result.Publisher.Output, Failure>.Publisher
public func scan(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) -> T) -> Swift.Result.Publisher
- public func tryScan(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
+ public func tryScan(_ initialResult: T, _ nextPartialResult: (T, Swift.Result.Publisher.Output) throws -> T) -> Swift.Result.Publisher
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Swift.Result.Publisher where Failure == Swift.Never {
@@ -1694,7 +1694,7 @@ extension Combine.Publishers {
public let initialResult: Output
public let nextPartialResult: (Output, Upstream.Output) throws -> Output
public init(upstream: Upstream, initialResult: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output)
- public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Error
+ public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1724,8 +1724,8 @@ public struct ImmediateScheduler : Combine.Scheduler {
public static func microseconds(_ us: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride
public static func nanoseconds(_ ns: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride
public static func == (a: Combine.ImmediateScheduler.SchedulerTimeType.Stride, b: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Swift.Bool
- public func encode(to encoder: Swift.Encoder) throws
- public init(from decoder: Swift.Decoder) throws
+ public func encode(to encoder: any Swift.Encoder) throws
+ public init(from decoder: any Swift.Decoder) throws
}
}
public typealias SchedulerOptions = Swift.Never
@@ -1739,7 +1739,7 @@ public struct ImmediateScheduler : Combine.Scheduler {
}
public func schedule(after date: Combine.ImmediateScheduler.SchedulerTimeType, tolerance: Combine.ImmediateScheduler.SchedulerTimeType.Stride, options: Combine.ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Swift.Void)
@discardableResult
- public func schedule(after date: Combine.ImmediateScheduler.SchedulerTimeType, interval: Combine.ImmediateScheduler.SchedulerTimeType.Stride, tolerance: Combine.ImmediateScheduler.SchedulerTimeType.Stride, options: Combine.ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> Combine.Cancellable
+ public func schedule(after date: Combine.ImmediateScheduler.SchedulerTimeType, interval: Combine.ImmediateScheduler.SchedulerTimeType.Stride, tolerance: Combine.ImmediateScheduler.SchedulerTimeType.Stride, options: Combine.ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
@@ -1780,7 +1780,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let predicate: (Combine.Publishers.TryLastWhere.Output) throws -> Swift.Bool
public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryLastWhere.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1809,7 +1809,7 @@ final public class CurrentValueSubject : Combine.Subject where
}
public init(_ value: Output)
@objc deinit
- final public func send(subscription: Combine.Subscription)
+ final public func send(subscription: any Combine.Subscription)
final public func receive(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber
final public func send(_ input: Output)
final public func send(completion: Combine.Subscribers.Completion)
@@ -1837,7 +1837,7 @@ extension Combine.Subscribers {
}
public init(object: Root, keyPath: Swift.ReferenceWritableKeyPath)
@objc deinit
- final public func receive(subscription: Combine.Subscription)
+ final public func receive(subscription: any Combine.Subscription)
final public func receive(_ value: Input) -> Combine.Subscribers.Demand
final public func receive(completion: Combine.Subscribers.Completion)
final public func cancel()
@@ -1860,7 +1860,7 @@ public protocol Scheduler {
var minimumTolerance: Self.SchedulerTimeType.Stride { get }
func schedule(options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void)
func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void)
- func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> Combine.Cancellable
+ func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable
}
#else
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1871,7 +1871,7 @@ public protocol Scheduler {
var minimumTolerance: Self.SchedulerTimeType.Stride { get }
func schedule(options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void)
func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void)
- func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> Combine.Cancellable
+ func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable
}
#endif
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -1879,8 +1879,8 @@ extension Combine.Scheduler {
public func schedule(after date: Self.SchedulerTimeType, _ action: @escaping () -> Swift.Void)
public func schedule(_ action: @escaping () -> Swift.Void)
public func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void)
- public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> Combine.Cancellable
- public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> Combine.Cancellable
+ public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable
+ public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher where Self.Failure == Self.Output.Failure, Self.Output : Combine.Publisher {
@@ -2003,7 +2003,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let areInIncreasingOrder: (Upstream.Output, Upstream.Output) throws -> Swift.Bool
public init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) throws -> Swift.Bool)
- public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Error
+ public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -2080,7 +2080,7 @@ extension Combine.Publishers.DropUntilOutput : Swift.Equatable where Upstream :
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publisher {
- public func handleEvents(receiveSubscription: ((Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Self.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)? = nil) -> Combine.Publishers.HandleEvents
+ public func handleEvents(receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Self.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)? = nil) -> Combine.Publishers.HandleEvents
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publishers {
@@ -2088,12 +2088,12 @@ extension Combine.Publishers {
public typealias Output = Upstream.Output
public typealias Failure = Upstream.Failure
public let upstream: Upstream
- public var receiveSubscription: ((Combine.Subscription) -> Swift.Void)?
+ public var receiveSubscription: ((any Combine.Subscription) -> Swift.Void)?
public var receiveOutput: ((Combine.Publishers.HandleEvents.Output) -> Swift.Void)?
public var receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Void)?
public var receiveCancel: (() -> Swift.Void)?
public var receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)?
- public init(upstream: Upstream, receiveSubscription: ((Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Combine.Publishers.HandleEvents.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)?)
+ public init(upstream: Upstream, receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Combine.Publishers.HandleEvents.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion.Failure>) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)?)
public func receive(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input
}
}
@@ -2255,7 +2255,7 @@ extension Combine.Publishers {
public let upstream: Upstream
public let transform: (Upstream.Output) throws -> Output
public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output)
- public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Error
+ public func receive(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error
}
}
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
@@ -2341,11 +2341,11 @@ extension Combine.Publishers.Sequence where Failure == Swift.Never {
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
extension Combine.Publishers.Sequence {
public func allSatisfy(_ predicate: (Combine.Publishers.Sequence.Output) -> Swift.Bool) -> Swift.Result.Publisher
- public func tryAllSatisfy(_ predicate: (Combine.Publishers.Sequence.Output) throws -> Swift.Bool) -> Swift.Result.Publisher
+ public func tryAllSatisfy(_ predicate: (Combine.Publishers.Sequence.Output) throws -> Swift.Bool) -> Swift.Result