| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.3.2 effective-5.10 (swiftlang-6.3.2.1.2 clang-2100.0.123.2) |
| 3 | // swift-module-flags: -target arm64e-apple-ios26.5 -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 -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -user-module-version 3023 -module-name Combine |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.2 |
| 5 | import Darwin |
| 6 | import Swift |
| 7 | import _Concurrency |
| 8 | import _StringProcessing |
| 9 | import _SwiftConcurrencyShims |
| 10 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 11 | extension Combine.Publisher { |
| 12 | public func multicast<S>(_ createSubject: @escaping () -> S) -> Combine.Publishers.Multicast<Self, S> where S : Combine.Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 13 | public func multicast<S>(subject: S) -> Combine.Publishers.Multicast<Self, S> where S : Combine.Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 14 | } |
| 15 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 16 | extension Combine.Publishers { |
| 17 | final public class Multicast<Upstream, SubjectType> : Combine.ConnectablePublisher where Upstream : Combine.Publisher, SubjectType : Combine.Subject, Upstream.Failure == SubjectType.Failure, Upstream.Output == SubjectType.Output { |
| 18 | public typealias Output = Upstream.Output |
| 19 | public typealias Failure = Upstream.Failure |
| 20 | final public let upstream: Upstream |
| 21 | final public let createSubject: () -> SubjectType |
| 22 | public init(upstream: Upstream, createSubject: @escaping () -> SubjectType) |
| 23 | @objc deinit |
| 24 | final public func receive<S>(subscriber: S) where S : Combine.Subscriber, SubjectType.Failure == S.Failure, SubjectType.Output == S.Input |
| 25 | final public func connect() -> any Combine.Cancellable |
| 26 | } |
| 27 | } |
| 28 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 29 | public protocol Cancellable { |
| 30 | func cancel() |
| 31 | } |
| 32 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 33 | public protocol Subscription : Combine.Cancellable, Combine.CustomCombineIdentifierConvertible { |
| 34 | func request(_ demand: Combine.Subscribers.Demand) |
| 35 | } |
| 36 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 37 | public enum Subscriptions { |
| 38 | } |
| 39 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 40 | extension Combine.Subscriptions { |
| 41 | public static var empty: any Combine.Subscription { |
| 42 | get |
| 43 | } |
| 44 | } |
| 45 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 46 | final public class AnyCancellable : Combine.Cancellable, Swift.Hashable { |
| 47 | public init(_ cancel: @escaping () -> Swift.Void) |
| 48 | public init<C>(_ canceller: C) where C : Combine.Cancellable |
| 49 | @objc deinit |
| 50 | final public func cancel() |
| 51 | final public func hash(into hasher: inout Swift.Hasher) |
| 52 | public static func == (lhs: Combine.AnyCancellable, rhs: Combine.AnyCancellable) -> Swift.Bool |
| 53 | final public var hashValue: Swift.Int { |
| 54 | get |
| 55 | } |
| 56 | } |
| 57 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 58 | extension Combine.AnyCancellable { |
| 59 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 60 | final public func store<C>(in collection: inout C) where C : Swift.RangeReplaceableCollection, C.Element == Combine.AnyCancellable |
| 61 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 62 | final public func store(in set: inout Swift.Set<Combine.AnyCancellable>) |
| 63 | } |
| 64 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 65 | extension Combine.Cancellable { |
| 66 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 67 | public func store<C>(in collection: inout C) where C : Swift.RangeReplaceableCollection, C.Element == Combine.AnyCancellable |
| 68 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 69 | public func store(in set: inout Swift.Set<Combine.AnyCancellable>) |
| 70 | } |
| 71 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 72 | extension Combine.Publisher { |
| 73 | public func subscribe<S>(on scheduler: S, options: S.SchedulerOptions? = nil) -> Combine.Publishers.SubscribeOn<Self, S> where S : Combine.Scheduler |
| 74 | } |
| 75 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 76 | extension Combine.Publishers { |
| 77 | public struct SubscribeOn<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 78 | public typealias Output = Upstream.Output |
| 79 | public typealias Failure = Upstream.Failure |
| 80 | public let upstream: Upstream |
| 81 | public let scheduler: Context |
| 82 | public let options: Context.SchedulerOptions? |
| 83 | public init(upstream: Upstream, scheduler: Context, options: Context.SchedulerOptions?) |
| 84 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 85 | } |
| 86 | } |
| 87 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 88 | extension Combine.Publisher { |
| 89 | public func measureInterval<S>(using scheduler: S, options: S.SchedulerOptions? = nil) -> Combine.Publishers.MeasureInterval<Self, S> where S : Combine.Scheduler |
| 90 | } |
| 91 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 92 | extension Combine.Publishers { |
| 93 | public struct MeasureInterval<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 94 | public typealias Output = Context.SchedulerTimeType.Stride |
| 95 | public typealias Failure = Upstream.Failure |
| 96 | public let upstream: Upstream |
| 97 | public let scheduler: Context |
| 98 | public init(upstream: Upstream, scheduler: Context) |
| 99 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Context.SchedulerTimeType.Stride |
| 100 | } |
| 101 | } |
| 102 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 103 | extension Combine.Publisher { |
| 104 | public func drop(while predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.DropWhile<Self> |
| 105 | public func tryDrop(while predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryDropWhile<Self> |
| 106 | } |
| 107 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 108 | extension Combine.Publishers { |
| 109 | public struct DropWhile<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 110 | public typealias Output = Upstream.Output |
| 111 | public typealias Failure = Upstream.Failure |
| 112 | public let upstream: Upstream |
| 113 | public let predicate: (Combine.Publishers.DropWhile<Upstream>.Output) -> Swift.Bool |
| 114 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.DropWhile<Upstream>.Output) -> Swift.Bool) |
| 115 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 116 | } |
| 117 | public struct TryDropWhile<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 118 | public typealias Output = Upstream.Output |
| 119 | public typealias Failure = Swift.Error |
| 120 | public let upstream: Upstream |
| 121 | public let predicate: (Combine.Publishers.TryDropWhile<Upstream>.Output) throws -> Swift.Bool |
| 122 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryDropWhile<Upstream>.Output) throws -> Swift.Bool) |
| 123 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 124 | } |
| 125 | } |
| 126 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 127 | public struct Record<Output, Failure> : Combine.Publisher where Failure : Swift.Error { |
| 128 | public let recording: Combine.Record<Output, Failure>.Recording |
| 129 | public init(record: (inout Combine.Record<Output, Failure>.Recording) -> Swift.Void) |
| 130 | public init(recording: Combine.Record<Output, Failure>.Recording) |
| 131 | public init(output: [Output], completion: Combine.Subscribers.Completion<Failure>) |
| 132 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 133 | public struct Recording { |
| 134 | public typealias Input = Output |
| 135 | public var output: [Output] { |
| 136 | get |
| 137 | } |
| 138 | public var completion: Combine.Subscribers.Completion<Failure> { |
| 139 | get |
| 140 | } |
| 141 | public init() |
| 142 | public init(output: [Output], completion: Combine.Subscribers.Completion<Failure> = .finished) |
| 143 | public mutating func receive(_ input: Combine.Record<Output, Failure>.Recording.Input) |
| 144 | public mutating func receive(completion: Combine.Subscribers.Completion<Failure>) |
| 145 | } |
| 146 | } |
| 147 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 148 | extension Combine.Record.Recording : Swift.Codable where Output : Swift.Decodable, Output : Swift.Encodable, Failure : Swift.Decodable, Failure : Swift.Encodable { |
| 149 | public init(from decoder: any Swift.Decoder) throws |
| 150 | public func encode(into encoder: any Swift.Encoder) throws |
| 151 | public func encode(to encoder: any Swift.Encoder) throws |
| 152 | } |
| 153 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 154 | extension Combine.Record : Swift.Codable where Output : Swift.Decodable, Output : Swift.Encodable, Failure : Swift.Decodable, Failure : Swift.Encodable { |
| 155 | public func encode(to encoder: any Swift.Encoder) throws |
| 156 | public init(from decoder: any Swift.Decoder) throws |
| 157 | } |
| 158 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 159 | extension Combine.Publisher { |
| 160 | public func filter(_ isIncluded: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.Filter<Self> |
| 161 | public func tryFilter(_ isIncluded: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryFilter<Self> |
| 162 | } |
| 163 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 164 | extension Combine.Publishers { |
| 165 | public struct Filter<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 166 | public typealias Output = Upstream.Output |
| 167 | public typealias Failure = Upstream.Failure |
| 168 | public let upstream: Upstream |
| 169 | public let isIncluded: (Upstream.Output) -> Swift.Bool |
| 170 | public init(upstream: Upstream, isIncluded: @escaping (Upstream.Output) -> Swift.Bool) |
| 171 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 172 | } |
| 173 | public struct TryFilter<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 174 | public typealias Output = Upstream.Output |
| 175 | public typealias Failure = Swift.Error |
| 176 | public let upstream: Upstream |
| 177 | public let isIncluded: (Upstream.Output) throws -> Swift.Bool |
| 178 | public init(upstream: Upstream, isIncluded: @escaping (Upstream.Output) throws -> Swift.Bool) |
| 179 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 180 | } |
| 181 | } |
| 182 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 183 | extension Combine.Publishers.Filter { |
| 184 | public func filter(_ isIncluded: @escaping (Combine.Publishers.Filter<Upstream>.Output) -> Swift.Bool) -> Combine.Publishers.Filter<Upstream> |
| 185 | public func tryFilter(_ isIncluded: @escaping (Combine.Publishers.Filter<Upstream>.Output) throws -> Swift.Bool) -> Combine.Publishers.TryFilter<Upstream> |
| 186 | } |
| 187 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 188 | extension Combine.Publishers.TryFilter { |
| 189 | public func filter(_ isIncluded: @escaping (Combine.Publishers.TryFilter<Upstream>.Output) -> Swift.Bool) -> Combine.Publishers.TryFilter<Upstream> |
| 190 | public func tryFilter(_ isIncluded: @escaping (Combine.Publishers.TryFilter<Upstream>.Output) throws -> Swift.Bool) -> Combine.Publishers.TryFilter<Upstream> |
| 191 | } |
| 192 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 193 | extension Combine.Publisher { |
| 194 | public func breakpoint(receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Self.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion<Self.Failure>) -> Swift.Bool)? = nil) -> Combine.Publishers.Breakpoint<Self> |
| 195 | public func breakpointOnError() -> Combine.Publishers.Breakpoint<Self> |
| 196 | } |
| 197 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 198 | extension Combine.Publishers { |
| 199 | public struct Breakpoint<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 200 | public typealias Output = Upstream.Output |
| 201 | public typealias Failure = Upstream.Failure |
| 202 | public let upstream: Upstream |
| 203 | public let receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)? |
| 204 | public let receiveOutput: ((Upstream.Output) -> Swift.Bool)? |
| 205 | public let receiveCompletion: ((Combine.Subscribers.Completion<Combine.Publishers.Breakpoint<Upstream>.Failure>) -> Swift.Bool)? |
| 206 | public init(upstream: Upstream, receiveSubscription: ((any Combine.Subscription) -> Swift.Bool)? = nil, receiveOutput: ((Upstream.Output) -> Swift.Bool)? = nil, receiveCompletion: ((Combine.Subscribers.Completion<Combine.Publishers.Breakpoint<Upstream>.Failure>) -> Swift.Bool)? = nil) |
| 207 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 208 | } |
| 209 | } |
| 210 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 211 | public struct Deferred<DeferredPublisher> : Combine.Publisher where DeferredPublisher : Combine.Publisher { |
| 212 | public typealias Output = DeferredPublisher.Output |
| 213 | public typealias Failure = DeferredPublisher.Failure |
| 214 | public let createPublisher: () -> DeferredPublisher |
| 215 | public init(createPublisher: @escaping () -> DeferredPublisher) |
| 216 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, DeferredPublisher.Failure == S.Failure, DeferredPublisher.Output == S.Input |
| 217 | } |
| 218 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 219 | extension Combine.Publisher { |
| 220 | public func allSatisfy(_ predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.AllSatisfy<Self> |
| 221 | public func tryAllSatisfy(_ predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryAllSatisfy<Self> |
| 222 | } |
| 223 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 224 | extension Combine.Publishers { |
| 225 | public struct AllSatisfy<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 226 | public typealias Output = Swift.Bool |
| 227 | public typealias Failure = Upstream.Failure |
| 228 | public let upstream: Upstream |
| 229 | public let predicate: (Upstream.Output) -> Swift.Bool |
| 230 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) -> Swift.Bool) |
| 231 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Swift.Bool |
| 232 | } |
| 233 | public struct TryAllSatisfy<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 234 | public typealias Output = Swift.Bool |
| 235 | public typealias Failure = Swift.Error |
| 236 | public let upstream: Upstream |
| 237 | public let predicate: (Upstream.Output) throws -> Swift.Bool |
| 238 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift.Bool) |
| 239 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == any Swift.Error, S.Input == Swift.Bool |
| 240 | } |
| 241 | } |
| 242 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 243 | extension Combine.Publisher { |
| 244 | public func sink(receiveCompletion: @escaping (Combine.Subscribers.Completion<Self.Failure>) -> Swift.Void, receiveValue: @escaping (Self.Output) -> Swift.Void) -> Combine.AnyCancellable |
| 245 | } |
| 246 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 247 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 248 | public func sink(receiveValue: @escaping (Self.Output) -> Swift.Void) -> Combine.AnyCancellable |
| 249 | } |
| 250 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 251 | extension Combine.Subscribers { |
| 252 | final public class Sink<Input, Failure> : Combine.Subscriber, Combine.Cancellable, Swift.CustomStringConvertible, Swift.CustomReflectable, Swift.CustomPlaygroundDisplayConvertible where Failure : Swift.Error { |
| 253 | final public var receiveValue: (Input) -> Swift.Void { |
| 254 | get |
| 255 | } |
| 256 | final public var receiveCompletion: (Combine.Subscribers.Completion<Failure>) -> Swift.Void { |
| 257 | get |
| 258 | } |
| 259 | final public var description: Swift.String { |
| 260 | get |
| 261 | } |
| 262 | final public var customMirror: Swift.Mirror { |
| 263 | get |
| 264 | } |
| 265 | final public var playgroundDescription: Any { |
| 266 | get |
| 267 | } |
| 268 | public init(receiveCompletion: @escaping (Combine.Subscribers.Completion<Failure>) -> Swift.Void, receiveValue: @escaping (Input) -> Swift.Void) |
| 269 | @objc deinit |
| 270 | final public func receive(subscription: any Combine.Subscription) |
| 271 | final public func receive(_ value: Input) -> Combine.Subscribers.Demand |
| 272 | final public func receive(completion: Combine.Subscribers.Completion<Failure>) |
| 273 | final public func cancel() |
| 274 | } |
| 275 | } |
| 276 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 277 | @usableFromInline |
| 278 | @_fixed_layout internal class AnySubscriberBase<Input, Failure> : Combine.Subscriber where Failure : Swift.Error { |
| 279 | @inline(__always) @inlinable internal init() {} |
| 280 | @objc @inline(__always) @inlinable deinit {} |
| 281 | @usableFromInline |
| 282 | internal func receive(subscription: any Combine.Subscription) |
| 283 | @usableFromInline |
| 284 | internal func receive(_ input: Input) -> Combine.Subscribers.Demand |
| 285 | @usableFromInline |
| 286 | internal func receive(completion: Combine.Subscribers.Completion<Failure>) |
| 287 | } |
| 288 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 289 | @usableFromInline |
| 290 | @_fixed_layout final internal class AnySubscriberBox<Base> : Combine.AnySubscriberBase<Base.Input, Base.Failure> where Base : Combine.Subscriber { |
| 291 | @usableFromInline |
| 292 | final internal let base: Base |
| 293 | @inlinable internal init(_ base: Base) { |
| 294 | self.base = base |
| 295 | } |
| 296 | @objc @inlinable deinit {} |
| 297 | @inlinable override final internal func receive(subscription: any Combine.Subscription) { |
| 298 | base.receive(subscription: subscription) |
| 299 | } |
| 300 | @inlinable override final internal func receive(_ input: Combine.AnySubscriberBox<Base>.Input) -> Combine.Subscribers.Demand { |
| 301 | base.receive(input) |
| 302 | } |
| 303 | @inlinable override final internal func receive(completion: Combine.Subscribers.Completion<Combine.AnySubscriberBox<Base>.Failure>) { |
| 304 | base.receive(completion: completion) |
| 305 | } |
| 306 | } |
| 307 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 308 | @usableFromInline |
| 309 | @_fixed_layout final internal class ClosureBasedAnySubscriber<Input, Failure> : Combine.AnySubscriberBase<Input, Failure> where Failure : Swift.Error { |
| 310 | @usableFromInline |
| 311 | final internal let receiveSubscriptionThunk: (any Combine.Subscription) -> Swift.Void |
| 312 | @usableFromInline |
| 313 | final internal let receiveValueThunk: (Input) -> Combine.Subscribers.Demand |
| 314 | @usableFromInline |
| 315 | final internal let receiveCompletionThunk: (Combine.Subscribers.Completion<Failure>) -> Swift.Void |
| 316 | @inlinable internal init(_ rcvSubscription: @escaping (any Combine.Subscription) -> Swift.Void, _ rcvValue: @escaping (Input) -> Combine.Subscribers.Demand, _ rcvCompletion: @escaping (Combine.Subscribers.Completion<Failure>) -> Swift.Void) { |
| 317 | receiveSubscriptionThunk = rcvSubscription |
| 318 | receiveValueThunk = rcvValue |
| 319 | receiveCompletionThunk = rcvCompletion |
| 320 | } |
| 321 | @objc @inlinable deinit {} |
| 322 | @inlinable override final internal func receive(subscription: any Combine.Subscription) { |
| 323 | receiveSubscriptionThunk(subscription) |
| 324 | } |
| 325 | @inlinable override final internal func receive(_ input: Input) -> Combine.Subscribers.Demand { |
| 326 | receiveValueThunk(input) |
| 327 | } |
| 328 | @inlinable override final internal func receive(completion: Combine.Subscribers.Completion<Failure>) { |
| 329 | receiveCompletionThunk(completion) |
| 330 | } |
| 331 | } |
| 332 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 333 | @frozen public struct AnySubscriber<Input, Failure> : Combine.Subscriber, Swift.CustomStringConvertible, Swift.CustomReflectable, Swift.CustomPlaygroundDisplayConvertible where Failure : Swift.Error { |
| 334 | @usableFromInline |
| 335 | internal let box: Combine.AnySubscriberBase<Input, Failure> |
| 336 | @usableFromInline |
| 337 | internal let descriptionThunk: () -> Swift.String |
| 338 | @usableFromInline |
| 339 | internal let customMirrorThunk: () -> Swift.Mirror |
| 340 | @usableFromInline |
| 341 | internal let playgroundDescriptionThunk: () -> Any |
| 342 | public let combineIdentifier: Combine.CombineIdentifier |
| 343 | public var description: Swift.String { |
| 344 | get |
| 345 | } |
| 346 | public var customMirror: Swift.Mirror { |
| 347 | get |
| 348 | } |
| 349 | public var playgroundDescription: Any { |
| 350 | get |
| 351 | } |
| 352 | @inline(__always) @inlinable public init<S>(_ s: S) where Input == S.Input, Failure == S.Failure, S : Combine.Subscriber { |
| 353 | if let erased = s as? AnySubscriber<Input, Failure> { |
| 354 | self = erased |
| 355 | } else { |
| 1 | // swift-interface-format-version: 1.0 |
| 2 | // swift-compiler-version: Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.19.4 clang-2100.3.19.4) |
| 3 | // swift-module-flags: -target arm64e-apple-ios27.0 -enable-objc-interop -enable-library-evolution -language-mode 5 -O -library-level api -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-library-evolution -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -user-module-version 3023 -module-name Combine |
| 4 | // swift-module-flags-ignorable: -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 |
| 5 | import Darwin |
| 6 | import Swift |
| 7 | import _Concurrency |
| 8 | import _StringProcessing |
| 9 | import _SwiftConcurrencyShims |
| 10 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 11 | extension Combine::Publisher { |
| 12 | public func multicast<S>(_ createSubject: @escaping () -> S) -> Combine::Publishers.Combine::Multicast<Self, S> where S : Combine::Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 13 | public func multicast<S>(subject: S) -> Combine::Publishers.Combine::Multicast<Self, S> where S : Combine::Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 14 | } |
| 15 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 16 | extension Combine::Publishers { |
| 17 | final public class Multicast<Upstream, SubjectType> : Combine::ConnectablePublisher where Upstream : Combine::Publisher, SubjectType : Combine::Subject, Upstream.Failure == SubjectType.Failure, Upstream.Output == SubjectType.Output { |
| 18 | public typealias Output = Upstream.Output |
| 19 | public typealias Failure = Upstream.Failure |
| 20 | final public let upstream: Upstream |
| 21 | final public let createSubject: () -> SubjectType |
| 22 | public init(upstream: Upstream, createSubject: @escaping () -> SubjectType) |
| 23 | @objc deinit |
| 24 | final public func receive<S>(subscriber: S) where S : Combine::Subscriber, SubjectType.Failure == S.Failure, SubjectType.Output == S.Input |
| 25 | final public func connect() -> any Combine::Cancellable |
| 26 | } |
| 27 | } |
| 28 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 29 | public protocol Cancellable { |
| 30 | func cancel() |
| 31 | } |
| 32 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 33 | public protocol Subscription : Combine::Cancellable, Combine::CustomCombineIdentifierConvertible { |
| 34 | func request(_ demand: Combine::Subscribers.Combine::Demand) |
| 35 | } |
| 36 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 37 | public enum Subscriptions { |
| 38 | } |
| 39 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 40 | extension Combine::Subscriptions { |
| 41 | public static var empty: any Combine::Subscription { |
| 42 | get |
| 43 | } |
| 44 | } |
| 45 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 46 | final public class AnyCancellable : Combine::Cancellable, Swift::Hashable { |
| 47 | public init(_ cancel: @escaping () -> Swift::Void) |
| 48 | public init<C>(_ canceller: C) where C : Combine::Cancellable |
| 49 | @objc deinit |
| 50 | final public func cancel() |
| 51 | final public func hash(into hasher: inout Swift::Hasher) |
| 52 | public static func == (lhs: Combine::AnyCancellable, rhs: Combine::AnyCancellable) -> Swift::Bool |
| 53 | final public var hashValue: Swift::Int { |
| 54 | get |
| 55 | } |
| 56 | } |
| 57 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 58 | extension Combine::AnyCancellable { |
| 59 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 60 | final public func store<C>(in collection: inout C) where C : Swift::RangeReplaceableCollection, C.Element == Combine::AnyCancellable |
| 61 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 62 | final public func store(in set: inout Swift::Set<Combine::AnyCancellable>) |
| 63 | } |
| 64 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 65 | extension Combine::Cancellable { |
| 66 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 67 | public func store<C>(in collection: inout C) where C : Swift::RangeReplaceableCollection, C.Element == Combine::AnyCancellable |
| 68 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 69 | public func store(in set: inout Swift::Set<Combine::AnyCancellable>) |
| 70 | } |
| 71 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 72 | extension Combine::Publisher { |
| 73 | public func subscribe<S>(on scheduler: S, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::SubscribeOn<Self, S> where S : Combine::Scheduler |
| 74 | } |
| 75 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 76 | extension Combine::Publishers { |
| 77 | public struct SubscribeOn<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 78 | public typealias Output = Upstream.Output |
| 79 | public typealias Failure = Upstream.Failure |
| 80 | public let upstream: Upstream |
| 81 | public let scheduler: Context |
| 82 | public let options: Context.SchedulerOptions? |
| 83 | public init(upstream: Upstream, scheduler: Context, options: Context.SchedulerOptions?) |
| 84 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 85 | } |
| 86 | } |
| 87 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 88 | extension Combine::Publisher { |
| 89 | public func measureInterval<S>(using scheduler: S, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::MeasureInterval<Self, S> where S : Combine::Scheduler |
| 90 | } |
| 91 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 92 | extension Combine::Publishers { |
| 93 | public struct MeasureInterval<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 94 | public typealias Output = Context.SchedulerTimeType.Stride |
| 95 | public typealias Failure = Upstream.Failure |
| 96 | public let upstream: Upstream |
| 97 | public let scheduler: Context |
| 98 | public init(upstream: Upstream, scheduler: Context) |
| 99 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Context.SchedulerTimeType.Stride |
| 100 | } |
| 101 | } |
| 102 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 103 | extension Combine::Publisher { |
| 104 | public func drop(while predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::DropWhile<Self> |
| 105 | public func tryDrop(while predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryDropWhile<Self> |
| 106 | } |
| 107 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 108 | extension Combine::Publishers { |
| 109 | public struct DropWhile<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 110 | public typealias Output = Upstream.Output |
| 111 | public typealias Failure = Upstream.Failure |
| 112 | public let upstream: Upstream |
| 113 | public let predicate: (Combine::Publishers.Combine::DropWhile<Upstream>.Combine::Output) -> Swift::Bool |
| 114 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::DropWhile<Upstream>.Output) -> Swift::Bool) |
| 115 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 116 | } |
| 117 | public struct TryDropWhile<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 118 | public typealias Output = Upstream.Output |
| 119 | public typealias Failure = Swift::Error |
| 120 | public let upstream: Upstream |
| 121 | public let predicate: (Combine::Publishers.Combine::TryDropWhile<Upstream>.Combine::Output) throws -> Swift::Bool |
| 122 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::TryDropWhile<Upstream>.Output) throws -> Swift::Bool) |
| 123 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 124 | } |
| 125 | } |
| 126 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 127 | public struct Record<Output, Failure> : Combine::Publisher where Failure : Swift::Error { |
| 128 | public let recording: Combine::Record<Output, Failure>.Combine::Recording |
| 129 | public init(record: (inout Combine::Record<Output, Failure>.Combine::Recording) -> Swift::Void) |
| 130 | public init(recording: Combine::Record<Output, Failure>.Combine::Recording) |
| 131 | public init(output: [Output], completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 132 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 133 | public struct Recording { |
| 134 | public typealias Input = Output |
| 135 | public var output: [Output] { |
| 136 | get |
| 137 | } |
| 138 | public var completion: Combine::Subscribers.Combine::Completion<Failure> { |
| 139 | get |
| 140 | } |
| 141 | public init() |
| 142 | public init(output: [Output], completion: Combine::Subscribers.Combine::Completion<Failure> = .finished) |
| 143 | public mutating func receive(_ input: Combine::Record<Output, Failure>.Combine::Recording.Combine::Input) |
| 144 | public mutating func receive(completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 145 | } |
| 146 | } |
| 147 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 148 | extension Combine::Record.Combine::Recording : Swift::Codable where Output : Swift::Decodable, Output : Swift::Encodable, Failure : Swift::Decodable, Failure : Swift::Encodable { |
| 149 | public init(from decoder: any Swift::Decoder) throws |
| 150 | public func encode(into encoder: any Swift::Encoder) throws |
| 151 | public func encode(to encoder: any Swift::Encoder) throws |
| 152 | } |
| 153 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 154 | extension Combine::Record : Swift::Codable where Output : Swift::Decodable, Output : Swift::Encodable, Failure : Swift::Decodable, Failure : Swift::Encodable { |
| 155 | public func encode(to encoder: any Swift::Encoder) throws |
| 156 | public init(from decoder: any Swift::Decoder) throws |
| 157 | } |
| 158 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 159 | extension Combine::Publisher { |
| 160 | public func filter(_ isIncluded: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::Filter<Self> |
| 161 | public func tryFilter(_ isIncluded: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryFilter<Self> |
| 162 | } |
| 163 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 164 | extension Combine::Publishers { |
| 165 | public struct Filter<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 166 | public typealias Output = Upstream.Output |
| 167 | public typealias Failure = Upstream.Failure |
| 168 | public let upstream: Upstream |
| 169 | public let isIncluded: (Upstream.Output) -> Swift::Bool |
| 170 | public init(upstream: Upstream, isIncluded: @escaping (Upstream.Output) -> Swift::Bool) |
| 171 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 172 | } |
| 173 | public struct TryFilter<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 174 | public typealias Output = Upstream.Output |
| 175 | public typealias Failure = Swift::Error |
| 176 | public let upstream: Upstream |
| 177 | public let isIncluded: (Upstream.Output) throws -> Swift::Bool |
| 178 | public init(upstream: Upstream, isIncluded: @escaping (Upstream.Output) throws -> Swift::Bool) |
| 179 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 180 | } |
| 181 | } |
| 182 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 183 | extension Combine::Publishers.Combine::Filter { |
| 184 | public func filter(_ isIncluded: @escaping (Combine::Publishers.Combine::Filter<Upstream>.Output) -> Swift::Bool) -> Combine::Publishers.Combine::Filter<Upstream> |
| 185 | public func tryFilter(_ isIncluded: @escaping (Combine::Publishers.Combine::Filter<Upstream>.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryFilter<Upstream> |
| 186 | } |
| 187 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 188 | extension Combine::Publishers.Combine::TryFilter { |
| 189 | public func filter(_ isIncluded: @escaping (Combine::Publishers.Combine::TryFilter<Upstream>.Output) -> Swift::Bool) -> Combine::Publishers.Combine::TryFilter<Upstream> |
| 190 | public func tryFilter(_ isIncluded: @escaping (Combine::Publishers.Combine::TryFilter<Upstream>.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryFilter<Upstream> |
| 191 | } |
| 192 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 193 | extension Combine::Publisher { |
| 194 | public func breakpoint(receiveSubscription: ((any Combine::Subscription) -> Swift::Bool)? = nil, receiveOutput: ((Self.Output) -> Swift::Bool)? = nil, receiveCompletion: ((Combine::Subscribers.Combine::Completion<Self.Failure>) -> Swift::Bool)? = nil) -> Combine::Publishers.Combine::Breakpoint<Self> |
| 195 | public func breakpointOnError() -> Combine::Publishers.Combine::Breakpoint<Self> |
| 196 | } |
| 197 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 198 | extension Combine::Publishers { |
| 199 | public struct Breakpoint<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 200 | public typealias Output = Upstream.Output |
| 201 | public typealias Failure = Upstream.Failure |
| 202 | public let upstream: Upstream |
| 203 | public let receiveSubscription: ((any Combine::Subscription) -> Swift::Bool)? |
| 204 | public let receiveOutput: ((Upstream.Output) -> Swift::Bool)? |
| 205 | public let receiveCompletion: ((Combine::Subscribers.Combine::Completion<Combine::Publishers.Combine::Breakpoint<Upstream>.Combine::Failure>) -> Swift::Bool)? |
| 206 | public init(upstream: Upstream, receiveSubscription: ((any Combine::Subscription) -> Swift::Bool)? = nil, receiveOutput: ((Upstream.Output) -> Swift::Bool)? = nil, receiveCompletion: ((Combine::Subscribers.Combine::Completion<Combine::Publishers.Combine::Breakpoint<Upstream>.Failure>) -> Swift::Bool)? = nil) |
| 207 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 208 | } |
| 209 | } |
| 210 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 211 | public struct Deferred<DeferredPublisher> : Combine::Publisher where DeferredPublisher : Combine::Publisher { |
| 212 | public typealias Output = DeferredPublisher.Output |
| 213 | public typealias Failure = DeferredPublisher.Failure |
| 214 | public let createPublisher: () -> DeferredPublisher |
| 215 | public init(createPublisher: @escaping () -> DeferredPublisher) |
| 216 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, DeferredPublisher.Failure == S.Failure, DeferredPublisher.Output == S.Input |
| 217 | } |
| 218 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 219 | extension Combine::Publisher { |
| 220 | public func allSatisfy(_ predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::AllSatisfy<Self> |
| 221 | public func tryAllSatisfy(_ predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryAllSatisfy<Self> |
| 222 | } |
| 223 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 224 | extension Combine::Publishers { |
| 225 | public struct AllSatisfy<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 226 | public typealias Output = Swift::Bool |
| 227 | public typealias Failure = Upstream.Failure |
| 228 | public let upstream: Upstream |
| 229 | public let predicate: (Upstream.Output) -> Swift::Bool |
| 230 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) -> Swift::Bool) |
| 231 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Swift::Bool |
| 232 | } |
| 233 | public struct TryAllSatisfy<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 234 | public typealias Output = Swift::Bool |
| 235 | public typealias Failure = Swift::Error |
| 236 | public let upstream: Upstream |
| 237 | public let predicate: (Upstream.Output) throws -> Swift::Bool |
| 238 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift::Bool) |
| 239 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, S.Failure == any Swift::Error, S.Input == Swift::Bool |
| 240 | } |
| 241 | } |
| 242 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 243 | extension Combine::Publisher { |
| 244 | public func sink(receiveCompletion: @escaping (Combine::Subscribers.Combine::Completion<Self.Failure>) -> Swift::Void, receiveValue: @escaping (Self.Output) -> Swift::Void) -> Combine::AnyCancellable |
| 245 | } |
| 246 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 247 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 248 | public func sink(receiveValue: @escaping (Self.Output) -> Swift::Void) -> Combine::AnyCancellable |
| 249 | } |
| 250 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 251 | extension Combine::Subscribers { |
| 252 | final public class Sink<Input, Failure> : Combine::Subscriber, Combine::Cancellable, Swift::CustomStringConvertible, Swift::CustomReflectable, Swift::CustomPlaygroundDisplayConvertible where Failure : Swift::Error { |
| 253 | final public var receiveValue: (Input) -> Swift::Void { |
| 254 | get |
| 255 | } |
| 256 | final public var receiveCompletion: (Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Void { |
| 257 | get |
| 258 | } |
| 259 | final public var description: Swift::String { |
| 260 | get |
| 261 | } |
| 262 | final public var customMirror: Swift::Mirror { |
| 263 | get |
| 264 | } |
| 265 | final public var playgroundDescription: Any { |
| 266 | get |
| 267 | } |
| 268 | public init(receiveCompletion: @escaping (Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Void, receiveValue: @escaping (Input) -> Swift::Void) |
| 269 | @objc deinit |
| 270 | final public func receive(subscription: any Combine::Subscription) |
| 271 | final public func receive(_ value: Input) -> Combine::Subscribers.Combine::Demand |
| 272 | final public func receive(completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 273 | final public func cancel() |
| 274 | } |
| 275 | } |
| 276 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 277 | @usableFromInline |
| 278 | @_fixed_layout internal class AnySubscriberBase<Input, Failure> : Combine::Subscriber where Failure : Swift::Error { |
| 279 | @inline(__always) @inlinable internal init() {} |
| 280 | @objc @inline(__always) @inlinable deinit {} |
| 281 | @usableFromInline |
| 282 | internal func receive(subscription: any Combine::Subscription) |
| 283 | @usableFromInline |
| 284 | internal func receive(_ input: Input) -> Combine::Subscribers.Combine::Demand |
| 285 | @usableFromInline |
| 286 | internal func receive(completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 287 | } |
| 288 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 289 | @usableFromInline |
| 290 | @_fixed_layout final internal class AnySubscriberBox<Base> : Combine::AnySubscriberBase<Base.Input, Base.Failure> where Base : Combine::Subscriber { |
| 291 | @usableFromInline |
| 292 | final internal let base: Base |
| 293 | @inlinable internal init(_ base: Base) { |
| 294 | self.base = base |
| 295 | } |
| 296 | @objc @inlinable deinit {} |
| 297 | @inlinable override final internal func receive(subscription: any Combine::Subscription) { |
| 298 | base.receive(subscription: subscription) |
| 299 | } |
| 300 | @inlinable override final internal func receive(_ input: Combine::AnySubscriberBox<Base>.Input) -> Combine::Subscribers.Combine::Demand { |
| 301 | base.receive(input) |
| 302 | } |
| 303 | @inlinable override final internal func receive(completion: Combine::Subscribers.Combine::Completion<Combine::AnySubscriberBox<Base>.Failure>) { |
| 304 | base.receive(completion: completion) |
| 305 | } |
| 306 | } |
| 307 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 308 | @usableFromInline |
| 309 | @_fixed_layout final internal class ClosureBasedAnySubscriber<Input, Failure> : Combine::AnySubscriberBase<Input, Failure> where Failure : Swift::Error { |
| 310 | @usableFromInline |
| 311 | final internal let receiveSubscriptionThunk: (any Combine::Subscription) -> Swift::Void |
| 312 | @usableFromInline |
| 313 | final internal let receiveValueThunk: (Input) -> Combine::Subscribers.Combine::Demand |
| 314 | @usableFromInline |
| 315 | final internal let receiveCompletionThunk: (Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Void |
| 316 | @inlinable internal init(_ rcvSubscription: @escaping (any Combine::Subscription) -> Swift::Void, _ rcvValue: @escaping (Input) -> Combine::Subscribers.Combine::Demand, _ rcvCompletion: @escaping (Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Void) { |
| 317 | receiveSubscriptionThunk = rcvSubscription |
| 318 | receiveValueThunk = rcvValue |
| 319 | receiveCompletionThunk = rcvCompletion |
| 320 | } |
| 321 | @objc @inlinable deinit {} |
| 322 | @inlinable override final internal func receive(subscription: any Combine::Subscription) { |
| 323 | receiveSubscriptionThunk(subscription) |
| 324 | } |
| 325 | @inlinable override final internal func receive(_ input: Input) -> Combine::Subscribers.Combine::Demand { |
| 326 | receiveValueThunk(input) |
| 327 | } |
| 328 | @inlinable override final internal func receive(completion: Combine::Subscribers.Combine::Completion<Failure>) { |
| 329 | receiveCompletionThunk(completion) |
| 330 | } |
| 331 | } |
| 332 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 333 | @frozen public struct AnySubscriber<Input, Failure> : Combine::Subscriber, Swift::CustomStringConvertible, Swift::CustomReflectable, Swift::CustomPlaygroundDisplayConvertible where Failure : Swift::Error { |
| 334 | @usableFromInline |
| 335 | internal let box: Combine::AnySubscriberBase<Input, Failure> |
| 336 | @usableFromInline |
| 337 | internal let descriptionThunk: () -> Swift::String |
| 338 | @usableFromInline |
| 339 | internal let customMirrorThunk: () -> Swift::Mirror |
| 340 | @usableFromInline |
| 341 | internal let playgroundDescriptionThunk: () -> Any |
| 342 | public let combineIdentifier: Combine::CombineIdentifier |
| 343 | public var description: Swift::String { |
| 344 | get |
| 345 | } |
| 346 | public var customMirror: Swift::Mirror { |
| 347 | get |
| 348 | } |
| 349 | public var playgroundDescription: Any { |
| 350 | get |
| 351 | } |
| 352 | @inline(__always) @inlinable public init<S>(_ s: S) where Input == S.Input, Failure == S.Failure, S : Combine::Subscriber { |
| 353 | if let erased = s as? AnySubscriber<Input, Failure> { |
| 354 | self = erased |
| 355 | } else { |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | public init<S>(_ s: S) where Input == S.Output, Failure == S.Failure, S : Combine.Subject |
| 389 | @inline(__always) @inlinable public init(receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveValue: ((Input) -> Combine.Subscribers.Demand)? = nil, receiveCompletion: ((Combine.Subscribers.Completion<Failure>) -> Swift.Void)? = nil) { |
| 390 | box = ClosureBasedAnySubscriber( |
| 391 | receiveSubscription ?? { _ in }, |
| 392 | receiveValue ?? { _ in return .none }, |
| 385 | } |
| 386 | } |
| 387 | } |
| 388 | public init<S>(_ s: S) where Input == S.Output, Failure == S.Failure, S : Combine::Subject |
| 389 | @inline(__always) @inlinable public init(receiveSubscription: ((any Combine::Subscription) -> Swift::Void)? = nil, receiveValue: ((Input) -> Combine::Subscribers.Combine::Demand)? = nil, receiveCompletion: ((Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Void)? = nil) { |
| 390 | box = ClosureBasedAnySubscriber( |
| 391 | receiveSubscription ?? { _ in }, |
| 392 | receiveValue ?? { _ in return .none }, |
| 406 | return "Anonymous AnySubscriber" |
| 407 | } |
| 408 | } |
| 409 | @inline(__always) @inlinable public func receive(subscription: any Combine.Subscription) { |
| 410 | box.receive(subscription: subscription) |
| 411 | } |
| 412 | @inline(__always) @inlinable public func receive(_ value: Input) -> Combine.Subscribers.Demand { |
| 413 | box.receive(value) |
| 414 | } |
| 415 | @inline(__always) @inlinable public func receive(completion: Combine.Subscribers.Completion<Failure>) { |
| 416 | box.receive(completion: completion) |
| 417 | } |
| 418 | } |
| 419 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 420 | extension Combine.Publisher where Self.Output : Swift.Equatable { |
| 421 | public func removeDuplicates() -> Combine.Publishers.RemoveDuplicates<Self> |
| 422 | } |
| 423 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 424 | extension Combine.Publisher { |
| 425 | public func removeDuplicates(by predicate: @escaping (Self.Output, Self.Output) -> Swift.Bool) -> Combine.Publishers.RemoveDuplicates<Self> |
| 426 | public func tryRemoveDuplicates(by predicate: @escaping (Self.Output, Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryRemoveDuplicates<Self> |
| 427 | } |
| 428 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 429 | extension Combine.Publishers { |
| 430 | public struct RemoveDuplicates<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 431 | public typealias Output = Upstream.Output |
| 432 | public typealias Failure = Upstream.Failure |
| 433 | public let upstream: Upstream |
| 434 | public let predicate: (Combine.Publishers.RemoveDuplicates<Upstream>.Output, Combine.Publishers.RemoveDuplicates<Upstream>.Output) -> Swift.Bool |
| 435 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.RemoveDuplicates<Upstream>.Output, Combine.Publishers.RemoveDuplicates<Upstream>.Output) -> Swift.Bool) |
| 436 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 437 | } |
| 438 | public struct TryRemoveDuplicates<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 439 | public typealias Output = Upstream.Output |
| 440 | public typealias Failure = Swift.Error |
| 441 | public let upstream: Upstream |
| 442 | public let predicate: (Combine.Publishers.TryRemoveDuplicates<Upstream>.Output, Combine.Publishers.TryRemoveDuplicates<Upstream>.Output) throws -> Swift.Bool |
| 443 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryRemoveDuplicates<Upstream>.Output, Combine.Publishers.TryRemoveDuplicates<Upstream>.Output) throws -> Swift.Bool) |
| 444 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 445 | } |
| 446 | } |
| 447 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 448 | public protocol TopLevelDecoder { |
| 449 | associatedtype Input |
| 450 | func decode<T>(_ type: T.Type, from: Self.Input) throws -> T where T : Swift.Decodable |
| 451 | } |
| 452 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 453 | public protocol TopLevelEncoder { |
| 454 | associatedtype Output |
| 455 | func encode<T>(_ value: T) throws -> Self.Output where T : Swift.Encodable |
| 456 | } |
| 457 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 458 | extension Combine.Publishers { |
| 459 | public struct Decode<Upstream, Output, Coder> : Combine.Publisher where Upstream : Combine.Publisher, Output : Swift.Decodable, Coder : Combine.TopLevelDecoder, Upstream.Output == Coder.Input { |
| 460 | public typealias Failure = Swift.Error |
| 461 | public let upstream: Upstream |
| 462 | public init(upstream: Upstream, decoder: Coder) |
| 463 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error |
| 464 | } |
| 465 | public struct Encode<Upstream, Coder> : Combine.Publisher where Upstream : Combine.Publisher, Coder : Combine.TopLevelEncoder, Upstream.Output : Swift.Encodable { |
| 466 | public typealias Failure = Swift.Error |
| 467 | public typealias Output = Coder.Output |
| 468 | public let upstream: Upstream |
| 469 | public init(upstream: Upstream, encoder: Coder) |
| 470 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Coder.Output == S.Input, S.Failure == any Swift.Error |
| 471 | } |
| 472 | } |
| 473 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 474 | extension Combine.Publisher { |
| 475 | public func decode<Item, Coder>(type: Item.Type, decoder: Coder) -> Combine.Publishers.Decode<Self, Item, Coder> where Item : Swift.Decodable, Coder : Combine.TopLevelDecoder, Self.Output == Coder.Input |
| 476 | } |
| 477 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 478 | extension Combine.Publisher where Self.Output : Swift.Encodable { |
| 479 | public func encode<Coder>(encoder: Coder) -> Combine.Publishers.Encode<Self, Coder> where Coder : Combine.TopLevelEncoder |
| 480 | } |
| 481 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 482 | public struct Just<Output> : Combine.Publisher { |
| 483 | public typealias Failure = Swift.Never |
| 484 | public let output: Output |
| 485 | public init(_ output: Output) |
| 486 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == Swift.Never |
| 487 | } |
| 488 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 489 | extension Combine.Just : Swift.Equatable where Output : Swift.Equatable { |
| 490 | public static func == (lhs: Combine.Just<Output>, rhs: Combine.Just<Output>) -> Swift.Bool |
| 491 | } |
| 492 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 493 | extension Combine.Just where Output : Swift.Comparable { |
| 494 | public func min() -> Combine.Just<Output> |
| 495 | public func max() -> Combine.Just<Output> |
| 496 | } |
| 497 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 498 | extension Combine.Just where Output : Swift.Equatable { |
| 499 | public func contains(_ output: Output) -> Combine.Just<Swift.Bool> |
| 500 | public func removeDuplicates() -> Combine.Just<Output> |
| 501 | } |
| 502 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 503 | extension Combine.Just { |
| 504 | public func allSatisfy(_ predicate: (Output) -> Swift.Bool) -> Combine.Just<Swift.Bool> |
| 505 | public func tryAllSatisfy(_ predicate: (Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 506 | public func collect() -> Combine.Just<[Output]> |
| 507 | public func compactMap<T>(_ transform: (Output) -> T?) -> Swift.Optional<T>.Publisher |
| 508 | public func min(by areInIncreasingOrder: (Output, Output) -> Swift.Bool) -> Combine.Just<Output> |
| 509 | public func max(by areInIncreasingOrder: (Output, Output) -> Swift.Bool) -> Combine.Just<Output> |
| 510 | public func prepend(_ elements: Output...) -> Combine.Publishers.Sequence<[Output], Combine.Just<Output>.Failure> |
| 511 | public func prepend<S>(_ elements: S) -> Combine.Publishers.Sequence<[Output], Combine.Just<Output>.Failure> where Output == S.Element, S : Swift.Sequence |
| 512 | public func append(_ elements: Output...) -> Combine.Publishers.Sequence<[Output], Combine.Just<Output>.Failure> |
| 513 | public func append<S>(_ elements: S) -> Combine.Publishers.Sequence<[Output], Combine.Just<Output>.Failure> where Output == S.Element, S : Swift.Sequence |
| 514 | public func contains(where predicate: (Output) -> Swift.Bool) -> Combine.Just<Swift.Bool> |
| 515 | public func tryContains(where predicate: (Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 516 | public func count() -> Combine.Just<Swift.Int> |
| 517 | public func dropFirst(_ count: Swift.Int = 1) -> Swift.Optional<Output>.Publisher |
| 518 | public func drop(while predicate: (Output) -> Swift.Bool) -> Swift.Optional<Output>.Publisher |
| 519 | public func first() -> Combine.Just<Output> |
| 520 | public func first(where predicate: (Output) -> Swift.Bool) -> Swift.Optional<Output>.Publisher |
| 521 | public func last() -> Combine.Just<Output> |
| 522 | public func last(where predicate: (Output) -> Swift.Bool) -> Swift.Optional<Output>.Publisher |
| 523 | public func filter(_ isIncluded: (Output) -> Swift.Bool) -> Swift.Optional<Output>.Publisher |
| 524 | public func ignoreOutput() -> Combine.Empty<Output, Combine.Just<Output>.Failure> |
| 525 | public func map<T>(_ transform: (Output) -> T) -> Combine.Just<T> |
| 526 | public func tryMap<T>(_ transform: (Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 527 | public func mapError<E>(_ transform: (Combine.Just<Output>.Failure) -> E) -> Swift.Result<Output, E>.Publisher where E : Swift.Error |
| 528 | public func output(at index: Swift.Int) -> Swift.Optional<Output>.Publisher |
| 529 | public func output<R>(in range: R) -> Swift.Optional<Output>.Publisher where R : Swift.RangeExpression, R.Bound == Swift.Int |
| 530 | public func prefix(_ maxLength: Swift.Int) -> Swift.Optional<Output>.Publisher |
| 531 | public func prefix(while predicate: (Output) -> Swift.Bool) -> Swift.Optional<Output>.Publisher |
| 532 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift.Result<T, Combine.Just<Output>.Failure>.Publisher |
| 533 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 534 | public func removeDuplicates(by predicate: (Output, Output) -> Swift.Bool) -> Combine.Just<Output> |
| 535 | public func tryRemoveDuplicates(by predicate: (Output, Output) throws -> Swift.Bool) -> Swift.Result<Output, any Swift.Error>.Publisher |
| 536 | public func replaceError(with output: Output) -> Combine.Just<Output> |
| 537 | public func replaceEmpty(with output: Output) -> Combine.Just<Output> |
| 538 | public func retry(_ times: Swift.Int) -> Combine.Just<Output> |
| 539 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift.Result<T, Combine.Just<Output>.Failure>.Publisher |
| 540 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 541 | public func setFailureType<E>(to failureType: E.Type) -> Swift.Result<Output, E>.Publisher where E : Swift.Error |
| 542 | } |
| 543 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 544 | final public class PassthroughSubject<Output, Failure> : Combine.Subject where Failure : Swift.Error { |
| 545 | public init() |
| 546 | @objc deinit |
| 547 | final public func send(subscription: any Combine.Subscription) |
| 548 | final public func receive<S>(subscriber: __owned S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 549 | final public func send(_ input: Output) |
| 550 | final public func send(completion: Combine.Subscribers.Completion<Failure>) |
| 551 | } |
| 552 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 553 | extension Combine.Publisher where Self.Output : Swift.Equatable { |
| 554 | public func contains(_ output: Self.Output) -> Combine.Publishers.Contains<Self> |
| 555 | } |
| 556 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 557 | extension Combine.Publishers { |
| 558 | public struct Contains<Upstream> : Combine.Publisher where Upstream : Combine.Publisher, Upstream.Output : Swift.Equatable { |
| 559 | public typealias Output = Swift.Bool |
| 560 | public typealias Failure = Upstream.Failure |
| 561 | public let upstream: Upstream |
| 562 | public let output: Upstream.Output |
| 563 | public init(upstream: Upstream, output: Upstream.Output) |
| 564 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Swift.Bool |
| 565 | } |
| 566 | } |
| 567 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 568 | extension Combine.Publishers.Contains : Swift.Equatable where Upstream : Swift.Equatable { |
| 569 | public static func == (lhs: Combine.Publishers.Contains<Upstream>, rhs: Combine.Publishers.Contains<Upstream>) -> Swift.Bool |
| 570 | } |
| 571 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 572 | extension Combine.Publisher { |
| 573 | public func combineLatest<P>(_ other: P) -> Combine.Publishers.CombineLatest<Self, P> where P : Combine.Publisher, Self.Failure == P.Failure |
| 574 | public func combineLatest<P, T>(_ other: P, _ transform: @escaping (Self.Output, P.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.CombineLatest<Self, P>, T> where P : Combine.Publisher, Self.Failure == P.Failure |
| 575 | public func combineLatest<P, Q>(_ publisher1: P, _ publisher2: Q) -> Combine.Publishers.CombineLatest3<Self, P, Q> where P : Combine.Publisher, Q : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 576 | public func combineLatest<P, Q, T>(_ publisher1: P, _ publisher2: Q, _ transform: @escaping (Self.Output, P.Output, Q.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.CombineLatest3<Self, P, Q>, T> where P : Combine.Publisher, Q : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 577 | public func combineLatest<P, Q, R>(_ publisher1: P, _ publisher2: Q, _ publisher3: R) -> Combine.Publishers.CombineLatest4<Self, P, Q, R> where P : Combine.Publisher, Q : Combine.Publisher, R : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 578 | public func combineLatest<P, Q, R, T>(_ publisher1: P, _ publisher2: Q, _ publisher3: R, _ transform: @escaping (Self.Output, P.Output, Q.Output, R.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.CombineLatest4<Self, P, Q, R>, T> where P : Combine.Publisher, Q : Combine.Publisher, R : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 579 | } |
| 580 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 581 | extension Combine.Publishers { |
| 582 | public struct CombineLatest<A, B> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, A.Failure == B.Failure { |
| 583 | public typealias Output = (A.Output, B.Output) |
| 584 | public typealias Failure = A.Failure |
| 585 | public let a: A |
| 586 | public let b: B |
| 587 | public init(_ a: A, _ b: B) |
| 588 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, B.Failure == S.Failure, S.Input == (A.Output, B.Output) |
| 589 | } |
| 590 | public struct CombineLatest3<A, B, C> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, A.Failure == B.Failure, B.Failure == C.Failure { |
| 591 | public typealias Output = (A.Output, B.Output, C.Output) |
| 592 | public typealias Failure = A.Failure |
| 593 | public let a: A |
| 594 | public let b: B |
| 595 | public let c: C |
| 596 | public init(_ a: A, _ b: B, _ c: C) |
| 597 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, C.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output) |
| 598 | } |
| 599 | public struct CombineLatest4<A, B, C, D> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, A.Failure == B.Failure, B.Failure == C.Failure, C.Failure == D.Failure { |
| 600 | public typealias Output = (A.Output, B.Output, C.Output, D.Output) |
| 601 | public typealias Failure = A.Failure |
| 602 | public let a: A |
| 603 | public let b: B |
| 604 | public let c: C |
| 605 | public let d: D |
| 606 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 607 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, D.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output, D.Output) |
| 608 | } |
| 609 | } |
| 610 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 611 | extension Combine.Publishers.CombineLatest : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable { |
| 612 | public static func == (lhs: Combine.Publishers.CombineLatest<A, B>, rhs: Combine.Publishers.CombineLatest<A, B>) -> Swift.Bool |
| 613 | } |
| 614 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 615 | extension Combine.Publishers.CombineLatest3 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable { |
| 616 | public static func == (lhs: Combine.Publishers.CombineLatest3<A, B, C>, rhs: Combine.Publishers.CombineLatest3<A, B, C>) -> Swift.Bool |
| 617 | } |
| 618 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 619 | extension Combine.Publishers.CombineLatest4 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable { |
| 620 | public static func == (lhs: Combine.Publishers.CombineLatest4<A, B, C, D>, rhs: Combine.Publishers.CombineLatest4<A, B, C, D>) -> Swift.Bool |
| 621 | } |
| 622 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 623 | extension Combine.Publisher { |
| 624 | public func prefix(_ maxLength: Swift.Int) -> Combine.Publishers.Output<Self> |
| 625 | } |
| 626 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 627 | extension Combine.ConnectablePublisher { |
| 628 | public func autoconnect() -> Combine.Publishers.Autoconnect<Self> |
| 629 | } |
| 630 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 631 | extension Combine.Publishers { |
| 632 | public class Autoconnect<Upstream> : Combine.Publisher where Upstream : Combine.ConnectablePublisher { |
| 633 | public typealias Output = Upstream.Output |
| 634 | public typealias Failure = Upstream.Failure |
| 635 | final public let upstream: Upstream |
| 636 | public init(upstream: Upstream) |
| 637 | @objc deinit |
| 638 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 639 | } |
| 640 | } |
| 641 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 642 | extension Combine.Publisher { |
| 643 | public func print(_ prefix: Swift.String = "", to stream: (any Swift.TextOutputStream)? = nil) -> Combine.Publishers.Print<Self> |
| 644 | } |
| 645 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 646 | extension Combine.Publishers { |
| 647 | public struct Print<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 648 | public typealias Output = Upstream.Output |
| 649 | public typealias Failure = Upstream.Failure |
| 650 | public let prefix: Swift.String |
| 651 | public let upstream: Upstream |
| 652 | public let stream: (any Swift.TextOutputStream)? |
| 653 | public init(upstream: Upstream, prefix: Swift.String, to stream: (any Swift.TextOutputStream)? = nil) |
| 654 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 655 | } |
| 656 | } |
| 657 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 658 | public protocol ObservableObject : AnyObject { |
| 659 | associatedtype ObjectWillChangePublisher : Combine.Publisher = Combine.ObservableObjectPublisher where Self.ObjectWillChangePublisher.Failure == Swift.Never |
| 660 | var objectWillChange: Self.ObjectWillChangePublisher { get } |
| 661 | } |
| 662 | @_hasMissingDesignatedInitializers @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 663 | final public class ObservableObjectPublisher : Combine.Publisher { |
| 664 | public typealias Output = Swift.Void |
| 665 | public typealias Failure = Swift.Never |
| 666 | public init() |
| 667 | @objc deinit |
| 668 | final public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == Swift.Never, S.Input == () |
| 669 | final public func send() |
| 670 | } |
| 671 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 672 | extension Combine.ObservableObject where Self.ObjectWillChangePublisher == Combine.ObservableObjectPublisher { |
| 673 | public var objectWillChange: Combine.ObservableObjectPublisher { |
| 674 | get |
| 675 | } |
| 676 | } |
| 677 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 678 | extension Combine.Publisher { |
| 679 | public func prefix(while predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.PrefixWhile<Self> |
| 680 | public func tryPrefix(while predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryPrefixWhile<Self> |
| 681 | } |
| 682 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 683 | extension Combine.Publishers { |
| 684 | public struct PrefixWhile<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 685 | public typealias Output = Upstream.Output |
| 686 | public typealias Failure = Upstream.Failure |
| 687 | public let upstream: Upstream |
| 688 | public let predicate: (Combine.Publishers.PrefixWhile<Upstream>.Output) -> Swift.Bool |
| 689 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.PrefixWhile<Upstream>.Output) -> Swift.Bool) |
| 690 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 691 | } |
| 692 | public struct TryPrefixWhile<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 693 | public typealias Output = Upstream.Output |
| 694 | public typealias Failure = Swift.Error |
| 695 | public let upstream: Upstream |
| 696 | public let predicate: (Combine.Publishers.TryPrefixWhile<Upstream>.Output) throws -> Swift.Bool |
| 697 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryPrefixWhile<Upstream>.Output) throws -> Swift.Bool) |
| 698 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 699 | } |
| 700 | } |
| 701 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 702 | final public class Future<Output, Failure> : Combine.Publisher where Failure : Swift.Error { |
| 703 | public typealias Promise = (Swift.Result<Output, Failure>) -> Swift.Void |
| 704 | public init(_ attemptToFulfill: @escaping (@escaping Combine.Future<Output, Failure>.Promise) -> Swift.Void) |
| 705 | @objc deinit |
| 706 | final public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 707 | } |
| 708 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 709 | public struct Empty<Output, Failure> : Combine.Publisher, Swift.Equatable where Failure : Swift.Error { |
| 710 | public init(completeImmediately: Swift.Bool = true) |
| 711 | public init(completeImmediately: Swift.Bool = true, outputType: Output.Type, failureType: Failure.Type) |
| 712 | public let completeImmediately: Swift.Bool |
| 713 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 714 | public static func == (lhs: Combine.Empty<Output, Failure>, rhs: Combine.Empty<Output, Failure>) -> Swift.Bool |
| 715 | } |
| 716 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 717 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 718 | public func setFailureType<E>(to failureType: E.Type) -> Combine.Publishers.SetFailureType<Self, E> where E : Swift.Error |
| 719 | } |
| 720 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 721 | extension Combine.Publishers { |
| 722 | public struct SetFailureType<Upstream, Failure> : Combine.Publisher where Upstream : Combine.Publisher, Failure : Swift.Error, Upstream.Failure == Swift.Never { |
| 723 | public typealias Output = Upstream.Output |
| 724 | public let upstream: Upstream |
| 725 | public init(upstream: Upstream) |
| 726 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine.Subscriber, Upstream.Output == S.Input |
| 727 | public func setFailureType<E>(to failure: E.Type) -> Combine.Publishers.SetFailureType<Upstream, E> where E : Swift.Error |
| 728 | } |
| 729 | } |
| 730 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 731 | extension Combine.Publishers.SetFailureType : Swift.Equatable where Upstream : Swift.Equatable { |
| 732 | public static func == (lhs: Combine.Publishers.SetFailureType<Upstream, Failure>, rhs: Combine.Publishers.SetFailureType<Upstream, Failure>) -> Swift.Bool |
| 733 | } |
| 734 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 735 | extension Swift.Optional { |
| 736 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 737 | public var publisher: Swift.Optional<Wrapped>.Publisher { |
| 738 | get |
| 739 | } |
| 740 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 741 | public struct Publisher : Combine.Publisher { |
| 742 | public typealias Output = Wrapped |
| 743 | public typealias Failure = Swift.Never |
| 744 | public let output: Swift.Optional<Wrapped>.Publisher.Output? |
| 745 | public init(_ output: Swift.Optional<Wrapped>.Publisher.Output?) |
| 746 | public func receive<S>(subscriber: S) where Wrapped == S.Input, S : Combine.Subscriber, S.Failure == Swift.Never |
| 747 | } |
| 748 | } |
| 749 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 750 | extension Swift.Optional.Publisher : Swift.Equatable where Wrapped : Swift.Equatable { |
| 751 | public static func == (lhs: Swift.Optional<Wrapped>.Publisher, rhs: Swift.Optional<Wrapped>.Publisher) -> Swift.Bool |
| 752 | } |
| 753 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 754 | extension Swift.Optional.Publisher where Wrapped : Swift.Equatable { |
| 755 | public func contains(_ output: Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Optional<Swift.Bool>.Publisher |
| 756 | public func removeDuplicates() -> Swift.Optional<Wrapped>.Publisher |
| 757 | } |
| 758 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 759 | extension Swift.Optional.Publisher where Wrapped : Swift.Comparable { |
| 760 | public func min() -> Swift.Optional<Wrapped>.Publisher |
| 761 | public func max() -> Swift.Optional<Wrapped>.Publisher |
| 762 | } |
| 763 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 764 | extension Swift.Optional.Publisher { |
| 765 | public func allSatisfy(_ predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Swift.Bool>.Publisher |
| 766 | public func collect() -> Swift.Optional<[Swift.Optional<Wrapped>.Publisher.Output]>.Publisher |
| 767 | public func compactMap<T>(_ transform: (Swift.Optional<Wrapped>.Publisher.Output) -> T?) -> Swift.Optional<T>.Publisher |
| 768 | public func min(by areInIncreasingOrder: (Swift.Optional<Wrapped>.Publisher.Output, Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 769 | public func max(by areInIncreasingOrder: (Swift.Optional<Wrapped>.Publisher.Output, Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 770 | public func contains(where predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Swift.Bool>.Publisher |
| 771 | public func count() -> Swift.Optional<Swift.Int>.Publisher |
| 772 | public func dropFirst(_ count: Swift.Int = 1) -> Swift.Optional<Wrapped>.Publisher |
| 773 | public func drop(while predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 774 | public func first() -> Swift.Optional<Wrapped>.Publisher |
| 775 | public func first(where predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 776 | public func last() -> Swift.Optional<Wrapped>.Publisher |
| 777 | public func last(where predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 778 | public func filter(_ isIncluded: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 779 | public func ignoreOutput() -> Combine.Empty<Swift.Optional<Wrapped>.Publisher.Output, Swift.Optional<Wrapped>.Publisher.Failure> |
| 780 | public func map<T>(_ transform: (Swift.Optional<Wrapped>.Publisher.Output) -> T) -> Swift.Optional<T>.Publisher |
| 781 | public func output(at index: Swift.Int) -> Swift.Optional<Wrapped>.Publisher |
| 782 | public func output<R>(in range: R) -> Swift.Optional<Wrapped>.Publisher where R : Swift.RangeExpression, R.Bound == Swift.Int |
| 783 | public func prefix(_ maxLength: Swift.Int) -> Swift.Optional<Wrapped>.Publisher |
| 784 | public func prefix(while predicate: (Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 785 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Optional<Wrapped>.Publisher.Output) -> T) -> Swift.Optional<T>.Publisher |
| 786 | public func removeDuplicates(by predicate: (Swift.Optional<Wrapped>.Publisher.Output, Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Bool) -> Swift.Optional<Wrapped>.Publisher |
| 787 | public func replaceError(with output: Swift.Optional<Wrapped>.Publisher.Output) -> Swift.Optional<Swift.Optional<Wrapped>.Publisher.Output>.Publisher |
| 788 | public func replaceEmpty(with output: Swift.Optional<Wrapped>.Publisher.Output) -> Combine.Just<Wrapped> |
| 789 | public func retry(_ times: Swift.Int) -> Swift.Optional<Wrapped>.Publisher |
| 790 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Optional<Wrapped>.Publisher.Output) -> T) -> Swift.Optional<T>.Publisher |
| 791 | } |
| 792 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 793 | extension Combine.Publisher { |
| 794 | public func contains(where predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.ContainsWhere<Self> |
| 795 | public func tryContains(where predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryContainsWhere<Self> |
| 796 | } |
| 797 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 798 | extension Combine.Publishers { |
| 799 | public struct ContainsWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 800 | public typealias Output = Swift.Bool |
| 801 | public typealias Failure = Upstream.Failure |
| 802 | public let upstream: Upstream |
| 803 | public let predicate: (Upstream.Output) -> Swift.Bool |
| 804 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) -> Swift.Bool) |
| 805 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Swift.Bool |
| 806 | } |
| 807 | public struct TryContainsWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 808 | public typealias Output = Swift.Bool |
| 809 | public typealias Failure = Swift.Error |
| 810 | public let upstream: Upstream |
| 811 | public let predicate: (Upstream.Output) throws -> Swift.Bool |
| 812 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift.Bool) |
| 813 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, S.Failure == any Swift.Error, S.Input == Swift.Bool |
| 814 | } |
| 815 | } |
| 816 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 406 | return "Anonymous AnySubscriber" |
| 407 | } |
| 408 | } |
| 409 | @inline(__always) @inlinable public func receive(subscription: any Combine::Subscription) { |
| 410 | box.receive(subscription: subscription) |
| 411 | } |
| 412 | @inline(__always) @inlinable public func receive(_ value: Input) -> Combine::Subscribers.Combine::Demand { |
| 413 | box.receive(value) |
| 414 | } |
| 415 | @inline(__always) @inlinable public func receive(completion: Combine::Subscribers.Combine::Completion<Failure>) { |
| 416 | box.receive(completion: completion) |
| 417 | } |
| 418 | } |
| 419 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 420 | extension Combine::Publisher where Self.Output : Swift::Equatable { |
| 421 | public func removeDuplicates() -> Combine::Publishers.Combine::RemoveDuplicates<Self> |
| 422 | } |
| 423 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 424 | extension Combine::Publisher { |
| 425 | public func removeDuplicates(by predicate: @escaping (Self.Output, Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::RemoveDuplicates<Self> |
| 426 | public func tryRemoveDuplicates(by predicate: @escaping (Self.Output, Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryRemoveDuplicates<Self> |
| 427 | } |
| 428 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 429 | extension Combine::Publishers { |
| 430 | public struct RemoveDuplicates<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 431 | public typealias Output = Upstream.Output |
| 432 | public typealias Failure = Upstream.Failure |
| 433 | public let upstream: Upstream |
| 434 | public let predicate: (Combine::Publishers.Combine::RemoveDuplicates<Upstream>.Combine::Output, Combine::Publishers.Combine::RemoveDuplicates<Upstream>.Combine::Output) -> Swift::Bool |
| 435 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::RemoveDuplicates<Upstream>.Output, Combine::Publishers.Combine::RemoveDuplicates<Upstream>.Output) -> Swift::Bool) |
| 436 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 437 | } |
| 438 | public struct TryRemoveDuplicates<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 439 | public typealias Output = Upstream.Output |
| 440 | public typealias Failure = Swift::Error |
| 441 | public let upstream: Upstream |
| 442 | public let predicate: (Combine::Publishers.Combine::TryRemoveDuplicates<Upstream>.Combine::Output, Combine::Publishers.Combine::TryRemoveDuplicates<Upstream>.Combine::Output) throws -> Swift::Bool |
| 443 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::TryRemoveDuplicates<Upstream>.Output, Combine::Publishers.Combine::TryRemoveDuplicates<Upstream>.Output) throws -> Swift::Bool) |
| 444 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 445 | } |
| 446 | } |
| 447 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 448 | public protocol TopLevelDecoder { |
| 449 | associatedtype Input |
| 450 | func decode<T>(_ type: T.Type, from: Self.Input) throws -> T where T : Swift::Decodable |
| 451 | } |
| 452 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 453 | public protocol TopLevelEncoder { |
| 454 | associatedtype Output |
| 455 | func encode<T>(_ value: T) throws -> Self.Output where T : Swift::Encodable |
| 456 | } |
| 457 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 458 | extension Combine::Publishers { |
| 459 | public struct Decode<Upstream, Output, Coder> : Combine::Publisher where Upstream : Combine::Publisher, Output : Swift::Decodable, Coder : Combine::TopLevelDecoder, Upstream.Output == Coder.Input { |
| 460 | public typealias Failure = Swift::Error |
| 461 | public let upstream: Upstream |
| 462 | public init(upstream: Upstream, decoder: Coder) |
| 463 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == any Swift::Error |
| 464 | } |
| 465 | public struct Encode<Upstream, Coder> : Combine::Publisher where Upstream : Combine::Publisher, Coder : Combine::TopLevelEncoder, Upstream.Output : Swift::Encodable { |
| 466 | public typealias Failure = Swift::Error |
| 467 | public typealias Output = Coder.Output |
| 468 | public let upstream: Upstream |
| 469 | public init(upstream: Upstream, encoder: Coder) |
| 470 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Coder.Output == S.Input, S.Failure == any Swift::Error |
| 471 | } |
| 472 | } |
| 473 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 474 | extension Combine::Publisher { |
| 475 | public func decode<Item, Coder>(type: Item.Type, decoder: Coder) -> Combine::Publishers.Combine::Decode<Self, Item, Coder> where Item : Swift::Decodable, Coder : Combine::TopLevelDecoder, Self.Output == Coder.Input |
| 476 | } |
| 477 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 478 | extension Combine::Publisher where Self.Output : Swift::Encodable { |
| 479 | public func encode<Coder>(encoder: Coder) -> Combine::Publishers.Combine::Encode<Self, Coder> where Coder : Combine::TopLevelEncoder |
| 480 | } |
| 481 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 482 | public struct Just<Output> : Combine::Publisher { |
| 483 | public typealias Failure = Swift::Never |
| 484 | public let output: Output |
| 485 | public init(_ output: Output) |
| 486 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == Swift::Never |
| 487 | } |
| 488 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 489 | extension Combine::Just : Swift::Equatable where Output : Swift::Equatable { |
| 490 | public static func == (lhs: Combine::Just<Output>, rhs: Combine::Just<Output>) -> Swift::Bool |
| 491 | } |
| 492 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 493 | extension Combine::Just where Output : Swift::Comparable { |
| 494 | public func min() -> Combine::Just<Output> |
| 495 | public func max() -> Combine::Just<Output> |
| 496 | } |
| 497 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 498 | extension Combine::Just where Output : Swift::Equatable { |
| 499 | public func contains(_ output: Output) -> Combine::Just<Swift::Bool> |
| 500 | public func removeDuplicates() -> Combine::Just<Output> |
| 501 | } |
| 502 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 503 | extension Combine::Just { |
| 504 | public func allSatisfy(_ predicate: (Output) -> Swift::Bool) -> Combine::Just<Swift::Bool> |
| 505 | public func tryAllSatisfy(_ predicate: (Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 506 | public func collect() -> Combine::Just<[Output]> |
| 507 | public func compactMap<T>(_ transform: (Output) -> T?) -> Swift::Optional<T>.Combine::Publisher |
| 508 | public func min(by areInIncreasingOrder: (Output, Output) -> Swift::Bool) -> Combine::Just<Output> |
| 509 | public func max(by areInIncreasingOrder: (Output, Output) -> Swift::Bool) -> Combine::Just<Output> |
| 510 | public func prepend(_ elements: Output...) -> Combine::Publishers.Combine::Sequence<[Output], Combine::Just<Output>.Combine::Failure> |
| 511 | public func prepend<S>(_ elements: S) -> Combine::Publishers.Combine::Sequence<[Output], Combine::Just<Output>.Combine::Failure> where Output == S.Element, S : Swift::Sequence |
| 512 | public func append(_ elements: Output...) -> Combine::Publishers.Combine::Sequence<[Output], Combine::Just<Output>.Combine::Failure> |
| 513 | public func append<S>(_ elements: S) -> Combine::Publishers.Combine::Sequence<[Output], Combine::Just<Output>.Combine::Failure> where Output == S.Element, S : Swift::Sequence |
| 514 | public func contains(where predicate: (Output) -> Swift::Bool) -> Combine::Just<Swift::Bool> |
| 515 | public func tryContains(where predicate: (Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 516 | public func count() -> Combine::Just<Swift::Int> |
| 517 | public func dropFirst(_ count: Swift::Int = 1) -> Swift::Optional<Output>.Combine::Publisher |
| 518 | public func drop(while predicate: (Output) -> Swift::Bool) -> Swift::Optional<Output>.Combine::Publisher |
| 519 | public func first() -> Combine::Just<Output> |
| 520 | public func first(where predicate: (Output) -> Swift::Bool) -> Swift::Optional<Output>.Combine::Publisher |
| 521 | public func last() -> Combine::Just<Output> |
| 522 | public func last(where predicate: (Output) -> Swift::Bool) -> Swift::Optional<Output>.Combine::Publisher |
| 523 | public func filter(_ isIncluded: (Output) -> Swift::Bool) -> Swift::Optional<Output>.Combine::Publisher |
| 524 | public func ignoreOutput() -> Combine::Empty<Output, Combine::Just<Output>.Combine::Failure> |
| 525 | public func map<T>(_ transform: (Output) -> T) -> Combine::Just<T> |
| 526 | public func tryMap<T>(_ transform: (Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 527 | public func mapError<E>(_ transform: (Combine::Just<Output>.Combine::Failure) -> E) -> Swift::Result<Output, E>.Combine::Publisher where E : Swift::Error |
| 528 | public func output(at index: Swift::Int) -> Swift::Optional<Output>.Combine::Publisher |
| 529 | public func output<R>(in range: R) -> Swift::Optional<Output>.Combine::Publisher where R : Swift::RangeExpression, R.Bound == Swift::Int |
| 530 | public func prefix(_ maxLength: Swift::Int) -> Swift::Optional<Output>.Combine::Publisher |
| 531 | public func prefix(while predicate: (Output) -> Swift::Bool) -> Swift::Optional<Output>.Combine::Publisher |
| 532 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift::Result<T, Combine::Just<Output>.Combine::Failure>.Combine::Publisher |
| 533 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 534 | public func removeDuplicates(by predicate: (Output, Output) -> Swift::Bool) -> Combine::Just<Output> |
| 535 | public func tryRemoveDuplicates(by predicate: (Output, Output) throws -> Swift::Bool) -> Swift::Result<Output, any Swift::Error>.Combine::Publisher |
| 536 | public func replaceError(with output: Output) -> Combine::Just<Output> |
| 537 | public func replaceEmpty(with output: Output) -> Combine::Just<Output> |
| 538 | public func retry(_ times: Swift::Int) -> Combine::Just<Output> |
| 539 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Output) -> T) -> Swift::Result<T, Combine::Just<Output>.Combine::Failure>.Combine::Publisher |
| 540 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: (T, Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 541 | public func setFailureType<E>(to failureType: E.Type) -> Swift::Result<Output, E>.Combine::Publisher where E : Swift::Error |
| 542 | } |
| 543 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 544 | final public class PassthroughSubject<Output, Failure> : Combine::Subject where Failure : Swift::Error { |
| 545 | public init() |
| 546 | @objc deinit |
| 547 | final public func send(subscription: any Combine::Subscription) |
| 548 | final public func receive<S>(subscriber: __owned S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 549 | final public func send(_ input: Output) |
| 550 | final public func send(completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 551 | } |
| 552 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 553 | extension Combine::Publisher where Self.Output : Swift::Equatable { |
| 554 | public func contains(_ output: Self.Output) -> Combine::Publishers.Combine::Contains<Self> |
| 555 | } |
| 556 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 557 | extension Combine::Publishers { |
| 558 | public struct Contains<Upstream> : Combine::Publisher where Upstream : Combine::Publisher, Upstream.Output : Swift::Equatable { |
| 559 | public typealias Output = Swift::Bool |
| 560 | public typealias Failure = Upstream.Failure |
| 561 | public let upstream: Upstream |
| 562 | public let output: Upstream.Output |
| 563 | public init(upstream: Upstream, output: Upstream.Output) |
| 564 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Swift::Bool |
| 565 | } |
| 566 | } |
| 567 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 568 | extension Combine::Publishers.Combine::Contains : Swift::Equatable where Upstream : Swift::Equatable { |
| 569 | public static func == (lhs: Combine::Publishers.Combine::Contains<Upstream>, rhs: Combine::Publishers.Combine::Contains<Upstream>) -> Swift::Bool |
| 570 | } |
| 571 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 572 | extension Combine::Publisher { |
| 573 | public func combineLatest<P>(_ other: P) -> Combine::Publishers.Combine::CombineLatest<Self, P> where P : Combine::Publisher, Self.Failure == P.Failure |
| 574 | public func combineLatest<P, T>(_ other: P, _ transform: @escaping (Self.Output, P.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::CombineLatest<Self, P>, T> where P : Combine::Publisher, Self.Failure == P.Failure |
| 575 | public func combineLatest<P, Q>(_ publisher1: P, _ publisher2: Q) -> Combine::Publishers.Combine::CombineLatest3<Self, P, Q> where P : Combine::Publisher, Q : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 576 | public func combineLatest<P, Q, T>(_ publisher1: P, _ publisher2: Q, _ transform: @escaping (Self.Output, P.Output, Q.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::CombineLatest3<Self, P, Q>, T> where P : Combine::Publisher, Q : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 577 | public func combineLatest<P, Q, R>(_ publisher1: P, _ publisher2: Q, _ publisher3: R) -> Combine::Publishers.Combine::CombineLatest4<Self, P, Q, R> where P : Combine::Publisher, Q : Combine::Publisher, R : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 578 | public func combineLatest<P, Q, R, T>(_ publisher1: P, _ publisher2: Q, _ publisher3: R, _ transform: @escaping (Self.Output, P.Output, Q.Output, R.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::CombineLatest4<Self, P, Q, R>, T> where P : Combine::Publisher, Q : Combine::Publisher, R : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 579 | } |
| 580 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 581 | extension Combine::Publishers { |
| 582 | public struct CombineLatest<A, B> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, A.Failure == B.Failure { |
| 583 | public typealias Output = (A.Output, B.Output) |
| 584 | public typealias Failure = A.Failure |
| 585 | public let a: A |
| 586 | public let b: B |
| 587 | public init(_ a: A, _ b: B) |
| 588 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, B.Failure == S.Failure, S.Input == (A.Output, B.Output) |
| 589 | } |
| 590 | public struct CombineLatest3<A, B, C> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, A.Failure == B.Failure, B.Failure == C.Failure { |
| 591 | public typealias Output = (A.Output, B.Output, C.Output) |
| 592 | public typealias Failure = A.Failure |
| 593 | public let a: A |
| 594 | public let b: B |
| 595 | public let c: C |
| 596 | public init(_ a: A, _ b: B, _ c: C) |
| 597 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, C.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output) |
| 598 | } |
| 599 | public struct CombineLatest4<A, B, C, D> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, A.Failure == B.Failure, B.Failure == C.Failure, C.Failure == D.Failure { |
| 600 | public typealias Output = (A.Output, B.Output, C.Output, D.Output) |
| 601 | public typealias Failure = A.Failure |
| 602 | public let a: A |
| 603 | public let b: B |
| 604 | public let c: C |
| 605 | public let d: D |
| 606 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 607 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, D.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output, D.Output) |
| 608 | } |
| 609 | } |
| 610 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 611 | extension Combine::Publishers.Combine::CombineLatest : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable { |
| 612 | public static func == (lhs: Combine::Publishers.Combine::CombineLatest<A, B>, rhs: Combine::Publishers.Combine::CombineLatest<A, B>) -> Swift::Bool |
| 613 | } |
| 614 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 615 | extension Combine::Publishers.Combine::CombineLatest3 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable { |
| 616 | public static func == (lhs: Combine::Publishers.Combine::CombineLatest3<A, B, C>, rhs: Combine::Publishers.Combine::CombineLatest3<A, B, C>) -> Swift::Bool |
| 617 | } |
| 618 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 619 | extension Combine::Publishers.Combine::CombineLatest4 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable { |
| 620 | public static func == (lhs: Combine::Publishers.Combine::CombineLatest4<A, B, C, D>, rhs: Combine::Publishers.Combine::CombineLatest4<A, B, C, D>) -> Swift::Bool |
| 621 | } |
| 622 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 623 | extension Combine::Publisher { |
| 624 | public func prefix(_ maxLength: Swift::Int) -> Combine::Publishers.Combine::Output<Self> |
| 625 | } |
| 626 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 627 | extension Combine::ConnectablePublisher { |
| 628 | public func autoconnect() -> Combine::Publishers.Combine::Autoconnect<Self> |
| 629 | } |
| 630 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 631 | extension Combine::Publishers { |
| 632 | public class Autoconnect<Upstream> : Combine::Publisher where Upstream : Combine::ConnectablePublisher { |
| 633 | public typealias Output = Upstream.Output |
| 634 | public typealias Failure = Upstream.Failure |
| 635 | final public let upstream: Upstream |
| 636 | public init(upstream: Upstream) |
| 637 | @objc deinit |
| 638 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 639 | } |
| 640 | } |
| 641 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 642 | extension Combine::Publisher { |
| 643 | public func print(_ prefix: Swift::String = "", to stream: (any Swift::TextOutputStream)? = nil) -> Combine::Publishers.Combine::Print<Self> |
| 644 | } |
| 645 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 646 | extension Combine::Publishers { |
| 647 | public struct Print<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 648 | public typealias Output = Upstream.Output |
| 649 | public typealias Failure = Upstream.Failure |
| 650 | public let prefix: Swift::String |
| 651 | public let upstream: Upstream |
| 652 | public let stream: (any Swift::TextOutputStream)? |
| 653 | public init(upstream: Upstream, prefix: Swift::String, to stream: (any Swift::TextOutputStream)? = nil) |
| 654 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 655 | } |
| 656 | } |
| 657 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 658 | public protocol ObservableObject : AnyObject { |
| 659 | associatedtype ObjectWillChangePublisher : Combine::Publisher = Combine::ObservableObjectPublisher where Self.ObjectWillChangePublisher.Failure == Swift::Never |
| 660 | var objectWillChange: Self.ObjectWillChangePublisher { get } |
| 661 | } |
| 662 | @_hasMissingDesignatedInitializers @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 663 | final public class ObservableObjectPublisher : Combine::Publisher { |
| 664 | public typealias Output = Swift::Void |
| 665 | public typealias Failure = Swift::Never |
| 666 | public init() |
| 667 | @objc deinit |
| 668 | final public func receive<S>(subscriber: S) where S : Combine::Subscriber, S.Failure == Swift::Never, S.Input == () |
| 669 | final public func send() |
| 670 | } |
| 671 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 672 | extension Combine::ObservableObject where Self.ObjectWillChangePublisher == Combine::ObservableObjectPublisher { |
| 673 | public var objectWillChange: Combine::ObservableObjectPublisher { |
| 674 | get |
| 675 | } |
| 676 | } |
| 677 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 678 | extension Combine::Publisher { |
| 679 | public func prefix(while predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::PrefixWhile<Self> |
| 680 | public func tryPrefix(while predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryPrefixWhile<Self> |
| 681 | } |
| 682 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 683 | extension Combine::Publishers { |
| 684 | public struct PrefixWhile<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 685 | public typealias Output = Upstream.Output |
| 686 | public typealias Failure = Upstream.Failure |
| 687 | public let upstream: Upstream |
| 688 | public let predicate: (Combine::Publishers.Combine::PrefixWhile<Upstream>.Combine::Output) -> Swift::Bool |
| 689 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::PrefixWhile<Upstream>.Output) -> Swift::Bool) |
| 690 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 691 | } |
| 692 | public struct TryPrefixWhile<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 693 | public typealias Output = Upstream.Output |
| 694 | public typealias Failure = Swift::Error |
| 695 | public let upstream: Upstream |
| 696 | public let predicate: (Combine::Publishers.Combine::TryPrefixWhile<Upstream>.Combine::Output) throws -> Swift::Bool |
| 697 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::TryPrefixWhile<Upstream>.Output) throws -> Swift::Bool) |
| 698 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 699 | } |
| 700 | } |
| 701 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 702 | final public class Future<Output, Failure> : Combine::Publisher where Failure : Swift::Error { |
| 703 | public typealias Promise = (Swift::Result<Output, Failure>) -> Swift::Void |
| 704 | public init(_ attemptToFulfill: @escaping (@escaping Combine::Future<Output, Failure>.Combine::Promise) -> Swift::Void) |
| 705 | @objc deinit |
| 706 | final public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 707 | } |
| 708 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 709 | public struct Empty<Output, Failure> : Combine::Publisher, Swift::Equatable where Failure : Swift::Error { |
| 710 | public init(completeImmediately: Swift::Bool = true) |
| 711 | public init(completeImmediately: Swift::Bool = true, outputType: Output.Type, failureType: Failure.Type) |
| 712 | public let completeImmediately: Swift::Bool |
| 713 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 714 | public static func == (lhs: Combine::Empty<Output, Failure>, rhs: Combine::Empty<Output, Failure>) -> Swift::Bool |
| 715 | } |
| 716 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 717 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 718 | public func setFailureType<E>(to failureType: E.Type) -> Combine::Publishers.Combine::SetFailureType<Self, E> where E : Swift::Error |
| 719 | } |
| 720 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 721 | extension Combine::Publishers { |
| 722 | public struct SetFailureType<Upstream, Failure> : Combine::Publisher where Upstream : Combine::Publisher, Failure : Swift::Error, Upstream.Failure == Swift::Never { |
| 723 | public typealias Output = Upstream.Output |
| 724 | public let upstream: Upstream |
| 725 | public init(upstream: Upstream) |
| 726 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine::Subscriber, Upstream.Output == S.Input |
| 727 | public func setFailureType<E>(to failure: E.Type) -> Combine::Publishers.Combine::SetFailureType<Upstream, E> where E : Swift::Error |
| 728 | } |
| 729 | } |
| 730 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 731 | extension Combine::Publishers.Combine::SetFailureType : Swift::Equatable where Upstream : Swift::Equatable { |
| 732 | public static func == (lhs: Combine::Publishers.Combine::SetFailureType<Upstream, Failure>, rhs: Combine::Publishers.Combine::SetFailureType<Upstream, Failure>) -> Swift::Bool |
| 733 | } |
| 734 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 735 | extension Swift::Optional { |
| 736 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 737 | public var publisher: Swift::Optional<Wrapped>.Combine::Publisher { |
| 738 | get |
| 739 | } |
| 740 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 741 | public struct Publisher : Combine::Publisher { |
| 742 | public typealias Output = Wrapped |
| 743 | public typealias Failure = Swift::Never |
| 744 | public let output: Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output? |
| 745 | public init(_ output: Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output?) |
| 746 | public func receive<S>(subscriber: S) where Wrapped == S.Input, S : Combine::Subscriber, S.Failure == Swift::Never |
| 747 | } |
| 748 | } |
| 749 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 750 | extension Swift::Optional.Combine::Publisher : Swift::Equatable where Wrapped : Swift::Equatable { |
| 751 | public static func == (lhs: Swift::Optional<Wrapped>.Combine::Publisher, rhs: Swift::Optional<Wrapped>.Combine::Publisher) -> Swift::Bool |
| 752 | } |
| 753 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 754 | extension Swift::Optional.Combine::Publisher where Wrapped : Swift::Equatable { |
| 755 | public func contains(_ output: Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Optional<Swift::Bool>.Combine::Publisher |
| 756 | public func removeDuplicates() -> Swift::Optional<Wrapped>.Combine::Publisher |
| 757 | } |
| 758 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 759 | extension Swift::Optional.Combine::Publisher where Wrapped : Swift::Comparable { |
| 760 | public func min() -> Swift::Optional<Wrapped>.Combine::Publisher |
| 761 | public func max() -> Swift::Optional<Wrapped>.Combine::Publisher |
| 762 | } |
| 763 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 764 | extension Swift::Optional.Combine::Publisher { |
| 765 | public func allSatisfy(_ predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Swift::Bool>.Combine::Publisher |
| 766 | public func collect() -> Swift::Optional<[Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output]>.Combine::Publisher |
| 767 | public func compactMap<T>(_ transform: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> T?) -> Swift::Optional<T>.Combine::Publisher |
| 768 | public func min(by areInIncreasingOrder: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 769 | public func max(by areInIncreasingOrder: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 770 | public func contains(where predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Swift::Bool>.Combine::Publisher |
| 771 | public func count() -> Swift::Optional<Swift::Int>.Combine::Publisher |
| 772 | public func dropFirst(_ count: Swift::Int = 1) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 773 | public func drop(while predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 774 | public func first() -> Swift::Optional<Wrapped>.Combine::Publisher |
| 775 | public func first(where predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 776 | public func last() -> Swift::Optional<Wrapped>.Combine::Publisher |
| 777 | public func last(where predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 778 | public func filter(_ isIncluded: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 779 | public func ignoreOutput() -> Combine::Empty<Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Failure> |
| 780 | public func map<T>(_ transform: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> T) -> Swift::Optional<T>.Combine::Publisher |
| 781 | public func output(at index: Swift::Int) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 782 | public func output<R>(in range: R) -> Swift::Optional<Wrapped>.Combine::Publisher where R : Swift::RangeExpression, R.Bound == Swift::Int |
| 783 | public func prefix(_ maxLength: Swift::Int) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 784 | public func prefix(while predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 785 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> T) -> Swift::Optional<T>.Combine::Publisher |
| 786 | public func removeDuplicates(by predicate: (Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 787 | public func replaceError(with output: Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Swift::Optional<Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output>.Combine::Publisher |
| 788 | public func replaceEmpty(with output: Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> Combine::Just<Wrapped> |
| 789 | public func retry(_ times: Swift::Int) -> Swift::Optional<Wrapped>.Combine::Publisher |
| 790 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Optional<Wrapped>.Combine::Publisher.Combine::Output) -> T) -> Swift::Optional<T>.Combine::Publisher |
| 791 | } |
| 792 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 793 | extension Combine::Publisher { |
| 794 | public func contains(where predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::ContainsWhere<Self> |
| 795 | public func tryContains(where predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryContainsWhere<Self> |
| 796 | } |
| 797 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 798 | extension Combine::Publishers { |
| 799 | public struct ContainsWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 800 | public typealias Output = Swift::Bool |
| 801 | public typealias Failure = Upstream.Failure |
| 802 | public let upstream: Upstream |
| 803 | public let predicate: (Upstream.Output) -> Swift::Bool |
| 804 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) -> Swift::Bool) |
| 805 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Swift::Bool |
| 806 | } |
| 807 | public struct TryContainsWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 808 | public typealias Output = Swift::Bool |
| 809 | public typealias Failure = Swift::Error |
| 810 | public let upstream: Upstream |
| 811 | public let predicate: (Upstream.Output) throws -> Swift::Bool |
| 812 | public init(upstream: Upstream, predicate: @escaping (Upstream.Output) throws -> Swift::Bool) |
| 813 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, S.Failure == any Swift::Error, S.Input == Swift::Bool |
| 814 | } |
| 815 | } |
| 816 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 819 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 820 | public protocol Publisher<Output, Failure> { |
| 821 | associatedtype Output |
| 822 | associatedtype Failure : Swift.Error |
| 823 | func receive<S>(subscriber: S) where S : Combine.Subscriber, Self.Failure == S.Failure, Self.Output == S.Input |
| 824 | } |
| 825 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 826 | extension Combine.Publisher { |
| 827 | @inline(never) public func subscribe<S>(_ subscriber: S) where S : Combine.Subscriber, Self.Failure == S.Failure, Self.Output == S.Input |
| 828 | } |
| 829 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 830 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 831 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *) |
| 832 | public func assign(to published: inout Combine.Published<Self.Output>.Publisher) |
| 833 | } |
| 834 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 835 | @propertyWrapper public struct Published<Value> { |
| 819 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 820 | public protocol Publisher<Output, Failure> { |
| 821 | associatedtype Output |
| 822 | associatedtype Failure : Swift::Error |
| 823 | func receive<S>(subscriber: S) where S : Combine::Subscriber, Self.Failure == S.Failure, Self.Output == S.Input |
| 824 | } |
| 825 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 826 | extension Combine::Publisher { |
| 827 | @inline(never) public func subscribe<S>(_ subscriber: S) where S : Combine::Subscriber, Self.Failure == S.Failure, Self.Output == S.Input |
| 828 | } |
| 829 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 830 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 831 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *) |
| 832 | public func assign(to published: inout Combine::Published<Self.Output>.Combine::Publisher) |
| 833 | } |
| 834 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) |
| 835 | @propertyWrapper public struct Published<Value> { |
| 842 | get |
| 843 | set |
| 844 | } |
| 845 | public static subscript<EnclosingSelf>(_enclosingInstance object: EnclosingSelf, wrapped wrappedKeyPath: Swift.ReferenceWritableKeyPath<EnclosingSelf, Value>, storage storageKeyPath: Swift.ReferenceWritableKeyPath<EnclosingSelf, Combine.Published<Value>>) -> Value where EnclosingSelf : AnyObject { |
| 846 | get |
| 847 | set |
| 848 | } |
| 849 | public struct Publisher : Combine.Publisher { |
| 850 | public typealias Output = Value |
| 851 | public typealias Failure = Swift.Never |
| 852 | public func receive<S>(subscriber: S) where Value == S.Input, S : Combine.Subscriber, S.Failure == Swift.Never |
| 853 | } |
| 854 | public var projectedValue: Combine.Published<Value>.Publisher { |
| 855 | mutating get |
| 856 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *) |
| 857 | _modify |
| 858 | } |
| 859 | } |
| 860 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 861 | public protocol ConnectablePublisher<Output, Failure> : Combine.Publisher { |
| 862 | func connect() -> any Combine.Cancellable |
| 863 | } |
| 864 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 865 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 866 | public func makeConnectable() -> Combine.Publishers.MakeConnectable<Self> |
| 867 | } |
| 868 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 869 | extension Combine.Publishers { |
| 870 | public struct MakeConnectable<Upstream> : Combine.ConnectablePublisher where Upstream : Combine.Publisher { |
| 871 | public typealias Output = Upstream.Output |
| 872 | public typealias Failure = Upstream.Failure |
| 873 | public init(upstream: Upstream) |
| 874 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 875 | public func connect() -> any Combine.Cancellable |
| 876 | } |
| 877 | } |
| 878 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 879 | extension Combine.Publisher { |
| 880 | public func collect() -> Combine.Publishers.Collect<Self> |
| 881 | public func collect(_ count: Swift.Int) -> Combine.Publishers.CollectByCount<Self> |
| 882 | public func collect<S>(_ strategy: Combine.Publishers.TimeGroupingStrategy<S>, options: S.SchedulerOptions? = nil) -> Combine.Publishers.CollectByTime<Self, S> where S : Combine.Scheduler |
| 883 | } |
| 884 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 885 | extension Combine.Publishers { |
| 886 | public enum TimeGroupingStrategy<Context> where Context : Combine.Scheduler { |
| 887 | case byTime(Context, Context.SchedulerTimeType.Stride) |
| 888 | case byTimeOrCount(Context, Context.SchedulerTimeType.Stride, Swift.Int) |
| 889 | } |
| 890 | public struct CollectByTime<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 891 | public typealias Output = [Upstream.Output] |
| 892 | public typealias Failure = Upstream.Failure |
| 893 | public let upstream: Upstream |
| 894 | public let strategy: Combine.Publishers.TimeGroupingStrategy<Context> |
| 895 | public let options: Context.SchedulerOptions? |
| 896 | public init(upstream: Upstream, strategy: Combine.Publishers.TimeGroupingStrategy<Context>, options: Context.SchedulerOptions?) |
| 897 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 898 | } |
| 899 | public struct Collect<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 900 | public typealias Output = [Upstream.Output] |
| 901 | public typealias Failure = Upstream.Failure |
| 902 | public let upstream: Upstream |
| 903 | public init(upstream: Upstream) |
| 904 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 905 | } |
| 906 | public struct CollectByCount<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 907 | public typealias Output = [Upstream.Output] |
| 908 | public typealias Failure = Upstream.Failure |
| 909 | public let upstream: Upstream |
| 910 | public let count: Swift.Int |
| 911 | public init(upstream: Upstream, count: Swift.Int) |
| 912 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 913 | } |
| 914 | } |
| 915 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 916 | extension Combine.Publishers.Collect : Swift.Equatable where Upstream : Swift.Equatable { |
| 917 | public static func == (lhs: Combine.Publishers.Collect<Upstream>, rhs: Combine.Publishers.Collect<Upstream>) -> Swift.Bool |
| 918 | } |
| 919 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 920 | extension Combine.Publishers.CollectByCount : Swift.Equatable where Upstream : Swift.Equatable { |
| 921 | public static func == (lhs: Combine.Publishers.CollectByCount<Upstream>, rhs: Combine.Publishers.CollectByCount<Upstream>) -> Swift.Bool |
| 922 | } |
| 923 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 924 | extension Combine.Publisher { |
| 925 | public func receive<S>(on scheduler: S, options: S.SchedulerOptions? = nil) -> Combine.Publishers.ReceiveOn<Self, S> where S : Combine.Scheduler |
| 926 | } |
| 927 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 928 | extension Combine.Publishers { |
| 929 | public struct ReceiveOn<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 930 | public typealias Output = Upstream.Output |
| 931 | public typealias Failure = Upstream.Failure |
| 932 | public let upstream: Upstream |
| 933 | public let scheduler: Context |
| 934 | public let options: Context.SchedulerOptions? |
| 935 | public init(upstream: Upstream, scheduler: Context, options: Context.SchedulerOptions?) |
| 936 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 937 | } |
| 938 | } |
| 939 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 940 | public enum Subscribers { |
| 941 | } |
| 942 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 943 | public protocol Subscriber<Input, Failure> : Combine.CustomCombineIdentifierConvertible { |
| 944 | associatedtype Input |
| 945 | associatedtype Failure : Swift.Error |
| 946 | func receive(subscription: any Combine.Subscription) |
| 947 | func receive(_ input: Self.Input) -> Combine.Subscribers.Demand |
| 948 | func receive(completion: Combine.Subscribers.Completion<Self.Failure>) |
| 949 | } |
| 950 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 951 | extension Combine.Subscribers { |
| 952 | @frozen public enum Completion<Failure> where Failure : Swift.Error { |
| 953 | case finished |
| 954 | case failure(Failure) |
| 955 | } |
| 956 | } |
| 957 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 958 | extension Combine.Subscribers.Completion : Swift.Equatable where Failure : Swift.Equatable { |
| 959 | public static func == (a: Combine.Subscribers.Completion<Failure>, b: Combine.Subscribers.Completion<Failure>) -> Swift.Bool |
| 960 | } |
| 961 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 962 | extension Combine.Subscribers.Completion : Swift.Hashable where Failure : Swift.Hashable { |
| 963 | public func hash(into hasher: inout Swift.Hasher) |
| 964 | public var hashValue: Swift.Int { |
| 965 | get |
| 966 | } |
| 967 | } |
| 968 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 969 | extension Combine.Subscribers.Completion : Swift.Encodable where Failure : Swift.Encodable { |
| 970 | public func encode(to encoder: any Swift.Encoder) throws |
| 971 | } |
| 972 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 973 | extension Combine.Subscribers.Completion : Swift.Decodable where Failure : Swift.Decodable { |
| 974 | public init(from decoder: any Swift.Decoder) throws |
| 975 | } |
| 976 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 977 | extension Combine.Subscribers { |
| 978 | @frozen public struct Demand : Swift.Equatable, Swift.Comparable, Swift.Hashable, Swift.Codable, Swift.CustomStringConvertible { |
| 979 | @usableFromInline |
| 980 | internal let rawValue: Swift.UInt |
| 981 | @inline(__always) @inlinable internal init(rawValue: Swift.UInt) { |
| 982 | self.rawValue = min(UInt(Int.max) + 1, rawValue) |
| 983 | } |
| 984 | public static let unlimited: Combine.Subscribers.Demand |
| 985 | public static let none: Combine.Subscribers.Demand |
| 986 | @inline(__always) @inlinable public static func max(_ value: Swift.Int) -> Combine.Subscribers.Demand { |
| 987 | precondition(value >= 0) |
| 988 | return Demand(rawValue: UInt(value)) |
| 989 | } |
| 990 | public var description: Swift.String { |
| 991 | get |
| 992 | } |
| 993 | @inline(__always) @inlinable public static func + (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Combine.Subscribers.Demand { |
| 994 | if lhs == .unlimited { |
| 995 | return .unlimited |
| 996 | } else { |
| 842 | get |
| 843 | set |
| 844 | } |
| 845 | public static subscript<EnclosingSelf>(_enclosingInstance object: EnclosingSelf, wrapped wrappedKeyPath: Swift::ReferenceWritableKeyPath<EnclosingSelf, Value>, storage storageKeyPath: Swift::ReferenceWritableKeyPath<EnclosingSelf, Combine::Published<Value>>) -> Value where EnclosingSelf : AnyObject { |
| 846 | get |
| 847 | set |
| 848 | } |
| 849 | public struct Publisher : Combine::Publisher { |
| 850 | public typealias Output = Value |
| 851 | public typealias Failure = Swift::Never |
| 852 | public func receive<S>(subscriber: S) where Value == S.Input, S : Combine::Subscriber, S.Failure == Swift::Never |
| 853 | } |
| 854 | public var projectedValue: Combine::Published<Value>.Combine::Publisher { |
| 855 | mutating get |
| 856 | @available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *) |
| 857 | _modify |
| 858 | } |
| 859 | } |
| 860 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 861 | public protocol ConnectablePublisher<Output, Failure> : Combine::Publisher { |
| 862 | func connect() -> any Combine::Cancellable |
| 863 | } |
| 864 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 865 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 866 | public func makeConnectable() -> Combine::Publishers.Combine::MakeConnectable<Self> |
| 867 | } |
| 868 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 869 | extension Combine::Publishers { |
| 870 | public struct MakeConnectable<Upstream> : Combine::ConnectablePublisher where Upstream : Combine::Publisher { |
| 871 | public typealias Output = Upstream.Output |
| 872 | public typealias Failure = Upstream.Failure |
| 873 | public init(upstream: Upstream) |
| 874 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 875 | public func connect() -> any Combine::Cancellable |
| 876 | } |
| 877 | } |
| 878 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 879 | extension Combine::Publisher { |
| 880 | public func collect() -> Combine::Publishers.Combine::Collect<Self> |
| 881 | public func collect(_ count: Swift::Int) -> Combine::Publishers.Combine::CollectByCount<Self> |
| 882 | public func collect<S>(_ strategy: Combine::Publishers.Combine::TimeGroupingStrategy<S>, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::CollectByTime<Self, S> where S : Combine::Scheduler |
| 883 | } |
| 884 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 885 | extension Combine::Publishers { |
| 886 | public enum TimeGroupingStrategy<Context> where Context : Combine::Scheduler { |
| 887 | case byTime(Context, Context.SchedulerTimeType.Stride) |
| 888 | case byTimeOrCount(Context, Context.SchedulerTimeType.Stride, Swift::Int) |
| 889 | } |
| 890 | public struct CollectByTime<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 891 | public typealias Output = [Upstream.Output] |
| 892 | public typealias Failure = Upstream.Failure |
| 893 | public let upstream: Upstream |
| 894 | public let strategy: Combine::Publishers.Combine::TimeGroupingStrategy<Context> |
| 895 | public let options: Context.SchedulerOptions? |
| 896 | public init(upstream: Upstream, strategy: Combine::Publishers.Combine::TimeGroupingStrategy<Context>, options: Context.SchedulerOptions?) |
| 897 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 898 | } |
| 899 | public struct Collect<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 900 | public typealias Output = [Upstream.Output] |
| 901 | public typealias Failure = Upstream.Failure |
| 902 | public let upstream: Upstream |
| 903 | public init(upstream: Upstream) |
| 904 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 905 | } |
| 906 | public struct CollectByCount<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 907 | public typealias Output = [Upstream.Output] |
| 908 | public typealias Failure = Upstream.Failure |
| 909 | public let upstream: Upstream |
| 910 | public let count: Swift::Int |
| 911 | public init(upstream: Upstream, count: Swift::Int) |
| 912 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == [Upstream.Output] |
| 913 | } |
| 914 | } |
| 915 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 916 | extension Combine::Publishers.Combine::Collect : Swift::Equatable where Upstream : Swift::Equatable { |
| 917 | public static func == (lhs: Combine::Publishers.Combine::Collect<Upstream>, rhs: Combine::Publishers.Combine::Collect<Upstream>) -> Swift::Bool |
| 918 | } |
| 919 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 920 | extension Combine::Publishers.Combine::CollectByCount : Swift::Equatable where Upstream : Swift::Equatable { |
| 921 | public static func == (lhs: Combine::Publishers.Combine::CollectByCount<Upstream>, rhs: Combine::Publishers.Combine::CollectByCount<Upstream>) -> Swift::Bool |
| 922 | } |
| 923 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 924 | extension Combine::Publisher { |
| 925 | public func receive<S>(on scheduler: S, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::ReceiveOn<Self, S> where S : Combine::Scheduler |
| 926 | } |
| 927 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 928 | extension Combine::Publishers { |
| 929 | public struct ReceiveOn<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 930 | public typealias Output = Upstream.Output |
| 931 | public typealias Failure = Upstream.Failure |
| 932 | public let upstream: Upstream |
| 933 | public let scheduler: Context |
| 934 | public let options: Context.SchedulerOptions? |
| 935 | public init(upstream: Upstream, scheduler: Context, options: Context.SchedulerOptions?) |
| 936 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 937 | } |
| 938 | } |
| 939 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 940 | public enum Subscribers { |
| 941 | } |
| 942 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 943 | public protocol Subscriber<Input, Failure> : Combine::CustomCombineIdentifierConvertible { |
| 944 | associatedtype Input |
| 945 | associatedtype Failure : Swift::Error |
| 946 | func receive(subscription: any Combine::Subscription) |
| 947 | func receive(_ input: Self.Input) -> Combine::Subscribers.Combine::Demand |
| 948 | func receive(completion: Combine::Subscribers.Combine::Completion<Self.Failure>) |
| 949 | } |
| 950 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 951 | extension Combine::Subscribers { |
| 952 | @frozen public enum Completion<Failure> where Failure : Swift::Error { |
| 953 | case finished |
| 954 | case failure(Failure) |
| 955 | } |
| 956 | } |
| 957 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 958 | extension Combine::Subscribers.Combine::Completion : Swift::Equatable where Failure : Swift::Equatable { |
| 959 | public static func == (a: Combine::Subscribers.Combine::Completion<Failure>, b: Combine::Subscribers.Combine::Completion<Failure>) -> Swift::Bool |
| 960 | } |
| 961 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 962 | extension Combine::Subscribers.Combine::Completion : Swift::Hashable where Failure : Swift::Hashable { |
| 963 | public func hash(into hasher: inout Swift::Hasher) |
| 964 | public var hashValue: Swift::Int { |
| 965 | get |
| 966 | } |
| 967 | } |
| 968 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 969 | extension Combine::Subscribers.Combine::Completion : Swift::Encodable where Failure : Swift::Encodable { |
| 970 | public func encode(to encoder: any Swift::Encoder) throws |
| 971 | } |
| 972 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 973 | extension Combine::Subscribers.Combine::Completion : Swift::Decodable where Failure : Swift::Decodable { |
| 974 | public init(from decoder: any Swift::Decoder) throws |
| 975 | } |
| 976 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 977 | extension Combine::Subscribers { |
| 978 | @frozen public struct Demand : Swift::Equatable, Swift::Comparable, Swift::Hashable, Swift::Codable, Swift::CustomStringConvertible { |
| 979 | @usableFromInline |
| 980 | internal let rawValue: Swift::UInt |
| 981 | @inline(__always) @inlinable internal init(rawValue: Swift::UInt) { |
| 982 | self.rawValue = min(UInt(Int.max) + 1, rawValue) |
| 983 | } |
| 984 | public static let unlimited: Combine::Subscribers.Combine::Demand |
| 985 | public static let none: Combine::Subscribers.Combine::Demand |
| 986 | @inline(__always) @inlinable public static func max(_ value: Swift::Int) -> Combine::Subscribers.Combine::Demand { |
| 987 | precondition(value >= 0) |
| 988 | return Demand(rawValue: UInt(value)) |
| 989 | } |
| 990 | public var description: Swift::String { |
| 991 | get |
| 992 | } |
| 993 | @inline(__always) @inlinable public static func + (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Combine::Subscribers.Combine::Demand { |
| 994 | if lhs == .unlimited { |
| 995 | return .unlimited |
| 996 | } else { |
| 1008 | } |
| 1009 | } |
| 1010 | } |
| 1011 | @inline(__always) @inlinable public static func += (lhs: inout Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) { |
| 1012 | if lhs == .unlimited { return } |
| 1013 | lhs = lhs + rhs |
| 1014 | } |
| 1015 | @inline(__always) @inlinable public static func + (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Combine.Subscribers.Demand { |
| 1016 | if lhs == .unlimited { |
| 1017 | return .unlimited |
| 1018 | } else { |
| 1008 | } |
| 1009 | } |
| 1010 | } |
| 1011 | @inline(__always) @inlinable public static func += (lhs: inout Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) { |
| 1012 | if lhs == .unlimited { return } |
| 1013 | lhs = lhs + rhs |
| 1014 | } |
| 1015 | @inline(__always) @inlinable public static func + (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Combine::Subscribers.Combine::Demand { |
| 1016 | if lhs == .unlimited { |
| 1017 | return .unlimited |
| 1018 | } else { |
| 1025 | } |
| 1026 | } |
| 1027 | } |
| 1028 | @inline(__always) @inlinable public static func += (lhs: inout Combine.Subscribers.Demand, rhs: Swift.Int) { |
| 1029 | lhs = lhs + rhs |
| 1030 | } |
| 1031 | public static func * (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Combine.Subscribers.Demand |
| 1032 | @inline(__always) @inlinable public static func *= (lhs: inout Combine.Subscribers.Demand, rhs: Swift.Int) { |
| 1033 | lhs = lhs * rhs |
| 1034 | } |
| 1035 | @inline(__always) @inlinable public static func - (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Combine.Subscribers.Demand { |
| 1036 | if lhs == .unlimited { |
| 1037 | return .unlimited |
| 1038 | } else { |
| 1025 | } |
| 1026 | } |
| 1027 | } |
| 1028 | @inline(__always) @inlinable public static func += (lhs: inout Combine::Subscribers.Combine::Demand, rhs: Swift::Int) { |
| 1029 | lhs = lhs + rhs |
| 1030 | } |
| 1031 | public static func * (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Combine::Subscribers.Combine::Demand |
| 1032 | @inline(__always) @inlinable public static func *= (lhs: inout Combine::Subscribers.Combine::Demand, rhs: Swift::Int) { |
| 1033 | lhs = lhs * rhs |
| 1034 | } |
| 1035 | @inline(__always) @inlinable public static func - (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Combine::Subscribers.Combine::Demand { |
| 1036 | if lhs == .unlimited { |
| 1037 | return .unlimited |
| 1038 | } else { |
| 1050 | } |
| 1051 | } |
| 1052 | } |
| 1053 | @inline(__always) @inlinable public static func -= (lhs: inout Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) { |
| 1054 | lhs = lhs - rhs |
| 1055 | } |
| 1056 | @inline(__always) @inlinable public static func - (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Combine.Subscribers.Demand { |
| 1057 | if lhs == .unlimited { |
| 1058 | return .unlimited |
| 1059 | } else { |
| 1050 | } |
| 1051 | } |
| 1052 | } |
| 1053 | @inline(__always) @inlinable public static func -= (lhs: inout Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) { |
| 1054 | lhs = lhs - rhs |
| 1055 | } |
| 1056 | @inline(__always) @inlinable public static func - (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Combine::Subscribers.Combine::Demand { |
| 1057 | if lhs == .unlimited { |
| 1058 | return .unlimited |
| 1059 | } else { |
| 1066 | } |
| 1067 | } |
| 1068 | } |
| 1069 | @inline(__always) @inlinable public static func -= (lhs: inout Combine.Subscribers.Demand, rhs: Swift.Int) { |
| 1070 | if lhs == .unlimited { return } |
| 1071 | lhs = lhs - rhs |
| 1072 | } |
| 1073 | @inline(__always) @inlinable public static func > (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1074 | if lhs == .unlimited { |
| 1075 | return true |
| 1076 | } else { |
| 1077 | return numericCast(lhs.rawValue) > rhs |
| 1078 | } |
| 1079 | } |
| 1080 | @inline(__always) @inlinable public static func >= (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1081 | if lhs == .unlimited { |
| 1082 | return true |
| 1083 | } else { |
| 1084 | return numericCast(lhs.rawValue) >= rhs |
| 1085 | } |
| 1086 | } |
| 1087 | @inline(__always) @inlinable public static func > (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1088 | if rhs == .unlimited { |
| 1089 | return false |
| 1090 | } else { |
| 1091 | return lhs > numericCast(rhs.rawValue) |
| 1092 | } |
| 1093 | } |
| 1094 | @inline(__always) @inlinable public static func >= (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1095 | if rhs == .unlimited { |
| 1096 | return false |
| 1097 | } else { |
| 1098 | return lhs >= numericCast(rhs.rawValue) |
| 1099 | } |
| 1100 | } |
| 1101 | @inline(__always) @inlinable public static func < (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1102 | if lhs == .unlimited { |
| 1103 | return false |
| 1104 | } else { |
| 1105 | return numericCast(lhs.rawValue) < rhs |
| 1106 | } |
| 1107 | } |
| 1108 | @inline(__always) @inlinable public static func < (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1109 | if rhs == .unlimited { |
| 1110 | return true |
| 1111 | } else { |
| 1112 | return lhs < numericCast(rhs.rawValue) |
| 1113 | } |
| 1114 | } |
| 1115 | @inline(__always) @inlinable public static func <= (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1116 | if lhs == .unlimited { |
| 1117 | return false |
| 1118 | } else { |
| 1119 | return numericCast(lhs.rawValue) <= rhs |
| 1120 | } |
| 1121 | } |
| 1122 | @inline(__always) @inlinable public static func <= (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1123 | if rhs == .unlimited { |
| 1124 | return true |
| 1125 | } else { |
| 1126 | return lhs <= numericCast(rhs.rawValue) |
| 1127 | } |
| 1128 | } |
| 1129 | @inline(__always) @inlinable public static func < (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1130 | switch (lhs, rhs) { |
| 1131 | case (.unlimited, .unlimited): |
| 1132 | return false |
| 1066 | } |
| 1067 | } |
| 1068 | } |
| 1069 | @inline(__always) @inlinable public static func -= (lhs: inout Combine::Subscribers.Combine::Demand, rhs: Swift::Int) { |
| 1070 | if lhs == .unlimited { return } |
| 1071 | lhs = lhs - rhs |
| 1072 | } |
| 1073 | @inline(__always) @inlinable public static func > (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1074 | if lhs == .unlimited { |
| 1075 | return true |
| 1076 | } else { |
| 1077 | return numericCast(lhs.rawValue) > rhs |
| 1078 | } |
| 1079 | } |
| 1080 | @inline(__always) @inlinable public static func >= (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1081 | if lhs == .unlimited { |
| 1082 | return true |
| 1083 | } else { |
| 1084 | return numericCast(lhs.rawValue) >= rhs |
| 1085 | } |
| 1086 | } |
| 1087 | @inline(__always) @inlinable public static func > (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1088 | if rhs == .unlimited { |
| 1089 | return false |
| 1090 | } else { |
| 1091 | return lhs > numericCast(rhs.rawValue) |
| 1092 | } |
| 1093 | } |
| 1094 | @inline(__always) @inlinable public static func >= (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1095 | if rhs == .unlimited { |
| 1096 | return false |
| 1097 | } else { |
| 1098 | return lhs >= numericCast(rhs.rawValue) |
| 1099 | } |
| 1100 | } |
| 1101 | @inline(__always) @inlinable public static func < (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1102 | if lhs == .unlimited { |
| 1103 | return false |
| 1104 | } else { |
| 1105 | return numericCast(lhs.rawValue) < rhs |
| 1106 | } |
| 1107 | } |
| 1108 | @inline(__always) @inlinable public static func < (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1109 | if rhs == .unlimited { |
| 1110 | return true |
| 1111 | } else { |
| 1112 | return lhs < numericCast(rhs.rawValue) |
| 1113 | } |
| 1114 | } |
| 1115 | @inline(__always) @inlinable public static func <= (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1116 | if lhs == .unlimited { |
| 1117 | return false |
| 1118 | } else { |
| 1119 | return numericCast(lhs.rawValue) <= rhs |
| 1120 | } |
| 1121 | } |
| 1122 | @inline(__always) @inlinable public static func <= (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1123 | if rhs == .unlimited { |
| 1124 | return true |
| 1125 | } else { |
| 1126 | return lhs <= numericCast(rhs.rawValue) |
| 1127 | } |
| 1128 | } |
| 1129 | @inline(__always) @inlinable public static func < (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1130 | switch (lhs, rhs) { |
| 1131 | case (.unlimited, .unlimited): |
| 1132 | return false |
| 1138 | return lhs.rawValue < rhs.rawValue |
| 1139 | } |
| 1140 | } |
| 1141 | @inline(__always) @inlinable public static func <= (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1142 | switch (lhs, rhs) { |
| 1143 | case (.unlimited, .unlimited): |
| 1144 | return true |
| 1138 | return lhs.rawValue < rhs.rawValue |
| 1139 | } |
| 1140 | } |
| 1141 | @inline(__always) @inlinable public static func <= (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1142 | switch (lhs, rhs) { |
| 1143 | case (.unlimited, .unlimited): |
| 1144 | return true |
| 1150 | return lhs.rawValue <= rhs.rawValue |
| 1151 | } |
| 1152 | } |
| 1153 | @inline(__always) @inlinable public static func >= (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1154 | switch (lhs, rhs) { |
| 1155 | case (.unlimited, .unlimited): |
| 1156 | return true |
| 1150 | return lhs.rawValue <= rhs.rawValue |
| 1151 | } |
| 1152 | } |
| 1153 | @inline(__always) @inlinable public static func >= (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1154 | switch (lhs, rhs) { |
| 1155 | case (.unlimited, .unlimited): |
| 1156 | return true |
| 1162 | return lhs.rawValue >= rhs.rawValue |
| 1163 | } |
| 1164 | } |
| 1165 | @inline(__always) @inlinable public static func > (lhs: Combine.Subscribers.Demand, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1166 | switch (lhs, rhs) { |
| 1167 | case (.unlimited, .unlimited): |
| 1168 | return false |
| 1162 | return lhs.rawValue >= rhs.rawValue |
| 1163 | } |
| 1164 | } |
| 1165 | @inline(__always) @inlinable public static func > (lhs: Combine::Subscribers.Combine::Demand, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1166 | switch (lhs, rhs) { |
| 1167 | case (.unlimited, .unlimited): |
| 1168 | return false |
| 1174 | return lhs.rawValue > rhs.rawValue |
| 1175 | } |
| 1176 | } |
| 1177 | @inline(__always) @inlinable public static func == (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1178 | if lhs == .unlimited { |
| 1179 | return false |
| 1180 | } else { |
| 1181 | return numericCast(lhs.rawValue) == rhs |
| 1182 | } |
| 1183 | } |
| 1184 | @inline(__always) @inlinable public static func != (lhs: Combine.Subscribers.Demand, rhs: Swift.Int) -> Swift.Bool { |
| 1185 | if lhs == .unlimited { |
| 1186 | return true |
| 1187 | } else { |
| 1188 | return numericCast(lhs.rawValue) != rhs |
| 1189 | } |
| 1190 | } |
| 1191 | @inline(__always) @inlinable public static func == (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1192 | if rhs == .unlimited { |
| 1193 | return false |
| 1194 | } else { |
| 1195 | return rhs.rawValue == lhs |
| 1196 | } |
| 1197 | } |
| 1198 | @inline(__always) @inlinable public static func != (lhs: Swift.Int, rhs: Combine.Subscribers.Demand) -> Swift.Bool { |
| 1199 | if rhs == .unlimited { |
| 1200 | return true |
| 1201 | } else { |
| 1202 | return numericCast(rhs.rawValue) != lhs |
| 1203 | } |
| 1204 | } |
| 1205 | @inline(__always) @inlinable public var max: Swift.Int? { |
| 1206 | get { |
| 1207 | if self == .unlimited { |
| 1208 | return nil |
| 1174 | return lhs.rawValue > rhs.rawValue |
| 1175 | } |
| 1176 | } |
| 1177 | @inline(__always) @inlinable public static func == (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1178 | if lhs == .unlimited { |
| 1179 | return false |
| 1180 | } else { |
| 1181 | return numericCast(lhs.rawValue) == rhs |
| 1182 | } |
| 1183 | } |
| 1184 | @inline(__always) @inlinable public static func != (lhs: Combine::Subscribers.Combine::Demand, rhs: Swift::Int) -> Swift::Bool { |
| 1185 | if lhs == .unlimited { |
| 1186 | return true |
| 1187 | } else { |
| 1188 | return numericCast(lhs.rawValue) != rhs |
| 1189 | } |
| 1190 | } |
| 1191 | @inline(__always) @inlinable public static func == (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1192 | if rhs == .unlimited { |
| 1193 | return false |
| 1194 | } else { |
| 1195 | return rhs.rawValue == lhs |
| 1196 | } |
| 1197 | } |
| 1198 | @inline(__always) @inlinable public static func != (lhs: Swift::Int, rhs: Combine::Subscribers.Combine::Demand) -> Swift::Bool { |
| 1199 | if rhs == .unlimited { |
| 1200 | return true |
| 1201 | } else { |
| 1202 | return numericCast(rhs.rawValue) != lhs |
| 1203 | } |
| 1204 | } |
| 1205 | @inline(__always) @inlinable public var max: Swift::Int? { |
| 1206 | get { |
| 1207 | if self == .unlimited { |
| 1208 | return nil |
| 1211 | } |
| 1212 | } |
| 1213 | } |
| 1214 | public init(from decoder: any Swift.Decoder) throws |
| 1215 | public func encode(to encoder: any Swift.Encoder) throws |
| 1216 | public static func == (a: Combine.Subscribers.Demand, b: Combine.Subscribers.Demand) -> Swift.Bool |
| 1217 | public func hash(into hasher: inout Swift.Hasher) |
| 1218 | public var hashValue: Swift.Int { |
| 1219 | get |
| 1220 | } |
| 1221 | } |
| 1222 | } |
| 1223 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1224 | extension Combine.Subscriber where Self.Input == () { |
| 1225 | public func receive() -> Combine.Subscribers.Demand |
| 1226 | } |
| 1227 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1228 | extension Combine.Publisher { |
| 1229 | public func map<T>(_ keyPath: Swift.KeyPath<Self.Output, T>) -> Combine.Publishers.MapKeyPath<Self, T> |
| 1230 | public func map<T0, T1>(_ keyPath0: Swift.KeyPath<Self.Output, T0>, _ keyPath1: Swift.KeyPath<Self.Output, T1>) -> Combine.Publishers.MapKeyPath2<Self, T0, T1> |
| 1231 | public func map<T0, T1, T2>(_ keyPath0: Swift.KeyPath<Self.Output, T0>, _ keyPath1: Swift.KeyPath<Self.Output, T1>, _ keyPath2: Swift.KeyPath<Self.Output, T2>) -> Combine.Publishers.MapKeyPath3<Self, T0, T1, T2> |
| 1232 | } |
| 1233 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1234 | extension Combine.Publishers { |
| 1235 | public struct MapKeyPath<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1236 | public typealias Failure = Upstream.Failure |
| 1237 | public let upstream: Upstream |
| 1238 | public let keyPath: Swift.KeyPath<Upstream.Output, Output> |
| 1239 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, Upstream.Failure == S.Failure |
| 1240 | } |
| 1241 | public struct MapKeyPath2<Upstream, Output0, Output1> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1242 | public typealias Output = (Output0, Output1) |
| 1243 | public typealias Failure = Upstream.Failure |
| 1244 | public let upstream: Upstream |
| 1245 | public let keyPath0: Swift.KeyPath<Upstream.Output, Output0> |
| 1246 | public let keyPath1: Swift.KeyPath<Upstream.Output, Output1> |
| 1247 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == (Output0, Output1) |
| 1248 | } |
| 1249 | public struct MapKeyPath3<Upstream, Output0, Output1, Output2> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1250 | public typealias Output = (Output0, Output1, Output2) |
| 1251 | public typealias Failure = Upstream.Failure |
| 1252 | public let upstream: Upstream |
| 1253 | public let keyPath0: Swift.KeyPath<Upstream.Output, Output0> |
| 1254 | public let keyPath1: Swift.KeyPath<Upstream.Output, Output1> |
| 1255 | public let keyPath2: Swift.KeyPath<Upstream.Output, Output2> |
| 1256 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == (Output0, Output1, Output2) |
| 1257 | } |
| 1258 | } |
| 1259 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1260 | public protocol _Introspection : AnyObject { |
| 1261 | func willReceive<P, S>(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1262 | func didReceive<P, S>(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1263 | func willReceive<S>(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber |
| 1264 | func didReceive<S>(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber |
| 1265 | func willReceive<S>(subscriber: S, input: S.Input) where S : Combine.Subscriber |
| 1266 | func didReceive<S>(subscriber: S, input: S.Input, resultingDemand: Combine.Subscribers.Demand) where S : Combine.Subscriber |
| 1267 | func willReceive<S>(subscriber: S, completion: Combine.Subscribers.Completion<S.Failure>) where S : Combine.Subscriber |
| 1268 | func didReceive<S>(subscriber: S, completion: Combine.Subscribers.Completion<S.Failure>) where S : Combine.Subscriber |
| 1269 | func willRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand) |
| 1270 | func didRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand) |
| 1271 | func willCancel(subscription: any Combine.Subscription) |
| 1272 | func didCancel(subscription: any Combine.Subscription) |
| 1273 | } |
| 1274 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1275 | extension Combine._Introspection { |
| 1276 | public func willReceive<P, S>(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1277 | public func didReceive<P, S>(publisher: P, subscriber: S) where P : Combine.Publisher, S : Combine.Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1278 | public func willReceive<S>(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber |
| 1279 | public func didReceive<S>(subscriber: S, subscription: any Combine.Subscription) where S : Combine.Subscriber |
| 1280 | public func willReceive<S>(subscriber: S, input: S.Input) where S : Combine.Subscriber |
| 1281 | public func didReceive<S>(subscriber: S, input: S.Input, resultingDemand: Combine.Subscribers.Demand) where S : Combine.Subscriber |
| 1282 | public func willReceive<S>(subscriber: S, completion: Combine.Subscribers.Completion<S.Failure>) where S : Combine.Subscriber |
| 1283 | public func didReceive<S>(subscriber: S, completion: Combine.Subscribers.Completion<S.Failure>) where S : Combine.Subscriber |
| 1284 | public func willRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand) |
| 1285 | public func didRequest(subscription: any Combine.Subscription, _ demand: Combine.Subscribers.Demand) |
| 1286 | public func willCancel(subscription: any Combine.Subscription) |
| 1287 | public func didCancel(subscription: any Combine.Subscription) |
| 1288 | public func enable() |
| 1289 | public func disable() |
| 1290 | public var isEnabled: Swift.Bool { |
| 1291 | get |
| 1292 | } |
| 1293 | } |
| 1294 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1295 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 1296 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1297 | public var values: Combine.AsyncPublisher<Self> { |
| 1298 | get |
| 1299 | } |
| 1300 | } |
| 1301 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1302 | extension Combine.Publisher { |
| 1303 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1304 | public var values: Combine.AsyncThrowingPublisher<Self> { |
| 1305 | get |
| 1306 | } |
| 1307 | } |
| 1308 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1309 | public struct AsyncPublisher<P> : _Concurrency.AsyncSequence where P : Combine.Publisher, P.Failure == Swift.Never { |
| 1310 | public typealias Element = P.Output |
| 1311 | public struct Iterator : _Concurrency.AsyncIteratorProtocol { |
| 1312 | public mutating func next() async -> P.Output? |
| 1313 | @available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) |
| 1314 | public typealias Element = P.Output |
| 1315 | @available(iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, macOS 15.0, *) |
| 1316 | @_implements(_Concurrency.AsyncIteratorProtocol, Failure) public typealias __AsyncIteratorProtocol_Failure = Swift.Never |
| 1317 | } |
| 1318 | public init(_ publisher: P) |
| 1319 | public func makeAsyncIterator() -> Combine.AsyncPublisher<P>.Iterator |
| 1320 | @available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) |
| 1321 | public typealias AsyncIterator = Combine.AsyncPublisher<P>.Iterator |
| 1322 | @available(iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, macOS 15.0, *) |
| 1323 | @_implements(_Concurrency.AsyncSequence, Failure) public typealias __AsyncSequence_Failure = Swift.Never |
| 1324 | } |
| 1325 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1326 | public struct AsyncThrowingPublisher<P> : _Concurrency.AsyncSequence where P : Combine.Publisher { |
| 1327 | public typealias Element = P.Output |
| 1328 | public struct Iterator : _Concurrency.AsyncIteratorProtocol { |
| 1329 | public mutating func next() async throws -> P.Output? |
| 1330 | @available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) |
| 1331 | public typealias Element = P.Output |
| 1332 | @available(iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, macOS 15.0, *) |
| 1333 | @_implements(_Concurrency.AsyncIteratorProtocol, Failure) public typealias __AsyncIteratorProtocol_Failure = any Swift.Error |
| 1334 | } |
| 1335 | public init(_ publisher: P) |
| 1336 | public func makeAsyncIterator() -> Combine.AsyncThrowingPublisher<P>.Iterator |
| 1337 | @available(iOS 15.0, tvOS 15.0, watchOS 8.0, macOS 12.0, *) |
| 1338 | public typealias AsyncIterator = Combine.AsyncThrowingPublisher<P>.Iterator |
| 1339 | @available(iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, macOS 15.0, *) |
| 1340 | @_implements(_Concurrency.AsyncSequence, Failure) public typealias __AsyncSequence_Failure = any Swift.Error |
| 1341 | } |
| 1342 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1343 | extension Combine.Publisher { |
| 1344 | public func prefix<P>(untilOutputFrom publisher: P) -> Combine.Publishers.PrefixUntilOutput<Self, P> where P : Combine.Publisher |
| 1345 | } |
| 1346 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1347 | extension Combine.Publishers { |
| 1348 | public struct PrefixUntilOutput<Upstream, Other> : Combine.Publisher where Upstream : Combine.Publisher, Other : Combine.Publisher { |
| 1349 | public typealias Output = Upstream.Output |
| 1350 | public typealias Failure = Upstream.Failure |
| 1351 | public let upstream: Upstream |
| 1352 | public let other: Other |
| 1353 | public init(upstream: Upstream, other: Other) |
| 1354 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1355 | } |
| 1356 | } |
| 1357 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1358 | public protocol Subject<Output, Failure> : AnyObject, Combine.Publisher { |
| 1359 | func send(_ value: Self.Output) |
| 1360 | func send(completion: Combine.Subscribers.Completion<Self.Failure>) |
| 1361 | func send(subscription: any Combine.Subscription) |
| 1362 | } |
| 1363 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1364 | extension Combine.Subject where Self.Output == () { |
| 1365 | public func send() |
| 1366 | } |
| 1367 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1368 | extension Combine.Publisher { |
| 1369 | public func subscribe<S>(_ subject: S) -> Combine.AnyCancellable where S : Combine.Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 1370 | } |
| 1371 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1372 | extension Combine.Publisher { |
| 1373 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) -> T) -> Combine.Publishers.Reduce<Self, T> |
| 1374 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) throws -> T) -> Combine.Publishers.TryReduce<Self, T> |
| 1375 | } |
| 1376 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1377 | extension Combine.Publishers { |
| 1378 | public struct Reduce<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1379 | public typealias Failure = Upstream.Failure |
| 1380 | public let upstream: Upstream |
| 1381 | public let initial: Output |
| 1382 | public let nextPartialResult: (Output, Upstream.Output) -> Output |
| 1383 | public init(upstream: Upstream, initial: Output, nextPartialResult: @escaping (Output, Upstream.Output) -> Output) |
| 1384 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, Upstream.Failure == S.Failure |
| 1385 | } |
| 1386 | public struct TryReduce<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1387 | public typealias Failure = Swift.Error |
| 1388 | public let upstream: Upstream |
| 1389 | public let initial: Output |
| 1390 | public let nextPartialResult: (Output, Upstream.Output) throws -> Output |
| 1391 | public init(upstream: Upstream, initial: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output) |
| 1392 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error |
| 1393 | } |
| 1394 | } |
| 1395 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1396 | extension Combine.Publisher { |
| 1397 | public func compactMap<T>(_ transform: @escaping (Self.Output) -> T?) -> Combine.Publishers.CompactMap<Self, T> |
| 1398 | public func tryCompactMap<T>(_ transform: @escaping (Self.Output) throws -> T?) -> Combine.Publishers.TryCompactMap<Self, T> |
| 1399 | } |
| 1400 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1401 | extension Combine.Publishers { |
| 1402 | public struct CompactMap<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1403 | public typealias Failure = Upstream.Failure |
| 1404 | public let upstream: Upstream |
| 1405 | public let transform: (Upstream.Output) -> Output? |
| 1406 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) -> Output?) |
| 1407 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, Upstream.Failure == S.Failure |
| 1408 | } |
| 1409 | public struct TryCompactMap<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1410 | public typealias Failure = Swift.Error |
| 1411 | public let upstream: Upstream |
| 1412 | public let transform: (Upstream.Output) throws -> Output? |
| 1413 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output?) |
| 1414 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error |
| 1415 | } |
| 1416 | } |
| 1417 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1418 | extension Combine.Publishers.CompactMap { |
| 1419 | public func compactMap<T>(_ transform: @escaping (Output) -> T?) -> Combine.Publishers.CompactMap<Upstream, T> |
| 1420 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine.Publishers.CompactMap<Upstream, T> |
| 1421 | } |
| 1422 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1423 | extension Combine.Publishers.TryCompactMap { |
| 1424 | public func compactMap<T>(_ transform: @escaping (Output) throws -> T?) -> Combine.Publishers.TryCompactMap<Upstream, T> |
| 1425 | } |
| 1426 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1427 | extension Combine.Publisher { |
| 1428 | public func merge<P>(with other: P) -> Combine.Publishers.Merge<Self, P> where P : Combine.Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 1429 | public func merge<B, C>(with b: B, _ c: C) -> Combine.Publishers.Merge3<Self, B, C> where B : Combine.Publisher, C : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output |
| 1430 | public func merge<B, C, D>(with b: B, _ c: C, _ d: D) -> Combine.Publishers.Merge4<Self, B, C, D> where B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output |
| 1431 | public func merge<B, C, D, E>(with b: B, _ c: C, _ d: D, _ e: E) -> Combine.Publishers.Merge5<Self, B, C, D, E> where B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output |
| 1432 | public func merge<B, C, D, E, F>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F) -> Combine.Publishers.Merge6<Self, B, C, D, E, F> where B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output |
| 1433 | public func merge<B, C, D, E, F, G>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G) -> Combine.Publishers.Merge7<Self, B, C, D, E, F, G> where B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, G : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output |
| 1434 | public func merge<B, C, D, E, F, G, H>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G, _ h: H) -> Combine.Publishers.Merge8<Self, B, C, D, E, F, G, H> where B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, G : Combine.Publisher, H : Combine.Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output, G.Failure == H.Failure, G.Output == H.Output |
| 1435 | public func merge(with other: Self) -> Combine.Publishers.MergeMany<Self> |
| 1436 | } |
| 1437 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1438 | extension Combine.Publishers { |
| 1439 | public struct Merge<A, B> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output { |
| 1440 | public typealias Output = A.Output |
| 1441 | public typealias Failure = A.Failure |
| 1442 | public let a: A |
| 1443 | public let b: B |
| 1444 | public init(_ a: A, _ b: B) |
| 1445 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, B.Failure == S.Failure, B.Output == S.Input |
| 1446 | public func merge<P>(with other: P) -> Combine.Publishers.Merge3<A, B, P> where P : Combine.Publisher, B.Failure == P.Failure, B.Output == P.Output |
| 1447 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine.Publishers.Merge4<A, B, Z, Y> where Z : Combine.Publisher, Y : Combine.Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1448 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine.Publishers.Merge5<A, B, Z, Y, X> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1449 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine.Publishers.Merge6<A, B, Z, Y, X, W> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1450 | public func merge<Z, Y, X, W, V>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V) -> Combine.Publishers.Merge7<A, B, Z, Y, X, W, V> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, V : Combine.Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output |
| 1451 | public func merge<Z, Y, X, W, V, U>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V, _ u: U) -> Combine.Publishers.Merge8<A, B, Z, Y, X, W, V, U> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, V : Combine.Publisher, U : Combine.Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output, V.Failure == U.Failure, V.Output == U.Output |
| 1452 | } |
| 1453 | public struct Merge3<A, B, C> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output { |
| 1454 | public typealias Output = A.Output |
| 1455 | public typealias Failure = A.Failure |
| 1456 | public let a: A |
| 1457 | public let b: B |
| 1458 | public let c: C |
| 1459 | public init(_ a: A, _ b: B, _ c: C) |
| 1460 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, C.Failure == S.Failure, C.Output == S.Input |
| 1461 | public func merge<P>(with other: P) -> Combine.Publishers.Merge4<A, B, C, P> where P : Combine.Publisher, C.Failure == P.Failure, C.Output == P.Output |
| 1462 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine.Publishers.Merge5<A, B, C, Z, Y> where Z : Combine.Publisher, Y : Combine.Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1463 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine.Publishers.Merge6<A, B, C, Z, Y, X> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1464 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine.Publishers.Merge7<A, B, C, Z, Y, X, W> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1465 | public func merge<Z, Y, X, W, V>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V) -> Combine.Publishers.Merge8<A, B, C, Z, Y, X, W, V> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, V : Combine.Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output |
| 1466 | } |
| 1467 | public struct Merge4<A, B, C, D> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output { |
| 1468 | public typealias Output = A.Output |
| 1469 | public typealias Failure = A.Failure |
| 1470 | public let a: A |
| 1471 | public let b: B |
| 1472 | public let c: C |
| 1473 | public let d: D |
| 1474 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 1475 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, D.Failure == S.Failure, D.Output == S.Input |
| 1476 | public func merge<P>(with other: P) -> Combine.Publishers.Merge5<A, B, C, D, P> where P : Combine.Publisher, D.Failure == P.Failure, D.Output == P.Output |
| 1477 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine.Publishers.Merge6<A, B, C, D, Z, Y> where Z : Combine.Publisher, Y : Combine.Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1478 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine.Publishers.Merge7<A, B, C, D, Z, Y, X> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1479 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine.Publishers.Merge8<A, B, C, D, Z, Y, X, W> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, W : Combine.Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1480 | } |
| 1481 | public struct Merge5<A, B, C, D, E> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output { |
| 1482 | public typealias Output = A.Output |
| 1483 | public typealias Failure = A.Failure |
| 1484 | public let a: A |
| 1211 | } |
| 1212 | } |
| 1213 | } |
| 1214 | public init(from decoder: any Swift::Decoder) throws |
| 1215 | public func encode(to encoder: any Swift::Encoder) throws |
| 1216 | public static func == (a: Combine::Subscribers.Combine::Demand, b: Combine::Subscribers.Combine::Demand) -> Swift::Bool |
| 1217 | public func hash(into hasher: inout Swift::Hasher) |
| 1218 | public var hashValue: Swift::Int { |
| 1219 | get |
| 1220 | } |
| 1221 | } |
| 1222 | } |
| 1223 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1224 | extension Combine::Subscriber where Self.Input == () { |
| 1225 | public func receive() -> Combine::Subscribers.Combine::Demand |
| 1226 | } |
| 1227 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1228 | extension Combine::Publisher { |
| 1229 | public func map<T>(_ keyPath: Swift::KeyPath<Self.Output, T>) -> Combine::Publishers.Combine::MapKeyPath<Self, T> |
| 1230 | public func map<T0, T1>(_ keyPath0: Swift::KeyPath<Self.Output, T0>, _ keyPath1: Swift::KeyPath<Self.Output, T1>) -> Combine::Publishers.Combine::MapKeyPath2<Self, T0, T1> |
| 1231 | public func map<T0, T1, T2>(_ keyPath0: Swift::KeyPath<Self.Output, T0>, _ keyPath1: Swift::KeyPath<Self.Output, T1>, _ keyPath2: Swift::KeyPath<Self.Output, T2>) -> Combine::Publishers.Combine::MapKeyPath3<Self, T0, T1, T2> |
| 1232 | } |
| 1233 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1234 | extension Combine::Publishers { |
| 1235 | public struct MapKeyPath<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1236 | public typealias Failure = Upstream.Failure |
| 1237 | public let upstream: Upstream |
| 1238 | public let keyPath: Swift::KeyPath<Upstream.Output, Output> |
| 1239 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, Upstream.Failure == S.Failure |
| 1240 | } |
| 1241 | public struct MapKeyPath2<Upstream, Output0, Output1> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1242 | public typealias Output = (Output0, Output1) |
| 1243 | public typealias Failure = Upstream.Failure |
| 1244 | public let upstream: Upstream |
| 1245 | public let keyPath0: Swift::KeyPath<Upstream.Output, Output0> |
| 1246 | public let keyPath1: Swift::KeyPath<Upstream.Output, Output1> |
| 1247 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == (Output0, Output1) |
| 1248 | } |
| 1249 | public struct MapKeyPath3<Upstream, Output0, Output1, Output2> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1250 | public typealias Output = (Output0, Output1, Output2) |
| 1251 | public typealias Failure = Upstream.Failure |
| 1252 | public let upstream: Upstream |
| 1253 | public let keyPath0: Swift::KeyPath<Upstream.Output, Output0> |
| 1254 | public let keyPath1: Swift::KeyPath<Upstream.Output, Output1> |
| 1255 | public let keyPath2: Swift::KeyPath<Upstream.Output, Output2> |
| 1256 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == (Output0, Output1, Output2) |
| 1257 | } |
| 1258 | } |
| 1259 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1260 | public protocol _Introspection : AnyObject { |
| 1261 | func willReceive<P, S>(publisher: P, subscriber: S) where P : Combine::Publisher, S : Combine::Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1262 | func didReceive<P, S>(publisher: P, subscriber: S) where P : Combine::Publisher, S : Combine::Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1263 | func willReceive<S>(subscriber: S, subscription: any Combine::Subscription) where S : Combine::Subscriber |
| 1264 | func didReceive<S>(subscriber: S, subscription: any Combine::Subscription) where S : Combine::Subscriber |
| 1265 | func willReceive<S>(subscriber: S, input: S.Input) where S : Combine::Subscriber |
| 1266 | func didReceive<S>(subscriber: S, input: S.Input, resultingDemand: Combine::Subscribers.Combine::Demand) where S : Combine::Subscriber |
| 1267 | func willReceive<S>(subscriber: S, completion: Combine::Subscribers.Combine::Completion<S.Failure>) where S : Combine::Subscriber |
| 1268 | func didReceive<S>(subscriber: S, completion: Combine::Subscribers.Combine::Completion<S.Failure>) where S : Combine::Subscriber |
| 1269 | func willRequest(subscription: any Combine::Subscription, _ demand: Combine::Subscribers.Combine::Demand) |
| 1270 | func didRequest(subscription: any Combine::Subscription, _ demand: Combine::Subscribers.Combine::Demand) |
| 1271 | func willCancel(subscription: any Combine::Subscription) |
| 1272 | func didCancel(subscription: any Combine::Subscription) |
| 1273 | } |
| 1274 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1275 | extension Combine::_Introspection { |
| 1276 | public func willReceive<P, S>(publisher: P, subscriber: S) where P : Combine::Publisher, S : Combine::Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1277 | public func didReceive<P, S>(publisher: P, subscriber: S) where P : Combine::Publisher, S : Combine::Subscriber, P.Failure == S.Failure, P.Output == S.Input |
| 1278 | public func willReceive<S>(subscriber: S, subscription: any Combine::Subscription) where S : Combine::Subscriber |
| 1279 | public func didReceive<S>(subscriber: S, subscription: any Combine::Subscription) where S : Combine::Subscriber |
| 1280 | public func willReceive<S>(subscriber: S, input: S.Input) where S : Combine::Subscriber |
| 1281 | public func didReceive<S>(subscriber: S, input: S.Input, resultingDemand: Combine::Subscribers.Combine::Demand) where S : Combine::Subscriber |
| 1282 | public func willReceive<S>(subscriber: S, completion: Combine::Subscribers.Combine::Completion<S.Failure>) where S : Combine::Subscriber |
| 1283 | public func didReceive<S>(subscriber: S, completion: Combine::Subscribers.Combine::Completion<S.Failure>) where S : Combine::Subscriber |
| 1284 | public func willRequest(subscription: any Combine::Subscription, _ demand: Combine::Subscribers.Combine::Demand) |
| 1285 | public func didRequest(subscription: any Combine::Subscription, _ demand: Combine::Subscribers.Combine::Demand) |
| 1286 | public func willCancel(subscription: any Combine::Subscription) |
| 1287 | public func didCancel(subscription: any Combine::Subscription) |
| 1288 | public func enable() |
| 1289 | public func disable() |
| 1290 | public var isEnabled: Swift::Bool { |
| 1291 | get |
| 1292 | } |
| 1293 | } |
| 1294 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1295 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 1296 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1297 | public var values: Combine::AsyncPublisher<Self> { |
| 1298 | get |
| 1299 | } |
| 1300 | } |
| 1301 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1302 | extension Combine::Publisher { |
| 1303 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1304 | public var values: Combine::AsyncThrowingPublisher<Self> { |
| 1305 | get |
| 1306 | } |
| 1307 | } |
| 1308 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1309 | public struct AsyncPublisher<P> : _Concurrency::AsyncSequence where P : Combine::Publisher, P.Failure == Swift::Never { |
| 1310 | public typealias Element = P.Output |
| 1311 | public struct Iterator : _Concurrency::AsyncIteratorProtocol { |
| 1312 | public mutating func next() async -> P.Output? |
| 1313 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1314 | public typealias Element = P.Output |
| 1315 | @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) |
| 1316 | @_implements(_Concurrency::AsyncIteratorProtocol, Failure) public typealias __AsyncIteratorProtocol_Failure = Swift::Never |
| 1317 | } |
| 1318 | public init(_ publisher: P) |
| 1319 | public func makeAsyncIterator() -> Combine::AsyncPublisher<P>.Combine::Iterator |
| 1320 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1321 | public typealias AsyncIterator = Combine::AsyncPublisher<P>.Combine::Iterator |
| 1322 | @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) |
| 1323 | @_implements(_Concurrency::AsyncSequence, Failure) public typealias __AsyncSequence_Failure = Swift::Never |
| 1324 | } |
| 1325 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1326 | public struct AsyncThrowingPublisher<P> : _Concurrency::AsyncSequence where P : Combine::Publisher { |
| 1327 | public typealias Element = P.Output |
| 1328 | public struct Iterator : _Concurrency::AsyncIteratorProtocol { |
| 1329 | public mutating func next() async throws -> P.Output? |
| 1330 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1331 | public typealias Element = P.Output |
| 1332 | @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) |
| 1333 | @_implements(_Concurrency::AsyncIteratorProtocol, Failure) public typealias __AsyncIteratorProtocol_Failure = any Swift::Error |
| 1334 | } |
| 1335 | public init(_ publisher: P) |
| 1336 | public func makeAsyncIterator() -> Combine::AsyncThrowingPublisher<P>.Combine::Iterator |
| 1337 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 1338 | public typealias AsyncIterator = Combine::AsyncThrowingPublisher<P>.Combine::Iterator |
| 1339 | @available(macOS 15.0, iOS 18.0, tvOS 18.0, watchOS 11.0, visionOS 2.0, *) |
| 1340 | @_implements(_Concurrency::AsyncSequence, Failure) public typealias __AsyncSequence_Failure = any Swift::Error |
| 1341 | } |
| 1342 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1343 | extension Combine::Publisher { |
| 1344 | public func prefix<P>(untilOutputFrom publisher: P) -> Combine::Publishers.Combine::PrefixUntilOutput<Self, P> where P : Combine::Publisher |
| 1345 | } |
| 1346 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1347 | extension Combine::Publishers { |
| 1348 | public struct PrefixUntilOutput<Upstream, Other> : Combine::Publisher where Upstream : Combine::Publisher, Other : Combine::Publisher { |
| 1349 | public typealias Output = Upstream.Output |
| 1350 | public typealias Failure = Upstream.Failure |
| 1351 | public let upstream: Upstream |
| 1352 | public let other: Other |
| 1353 | public init(upstream: Upstream, other: Other) |
| 1354 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1355 | } |
| 1356 | } |
| 1357 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1358 | public protocol Subject<Output, Failure> : AnyObject, Combine::Publisher { |
| 1359 | func send(_ value: Self.Output) |
| 1360 | func send(completion: Combine::Subscribers.Combine::Completion<Self.Failure>) |
| 1361 | func send(subscription: any Combine::Subscription) |
| 1362 | } |
| 1363 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1364 | extension Combine::Subject where Self.Output == () { |
| 1365 | public func send() |
| 1366 | } |
| 1367 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1368 | extension Combine::Publisher { |
| 1369 | public func subscribe<S>(_ subject: S) -> Combine::AnyCancellable where S : Combine::Subject, Self.Failure == S.Failure, Self.Output == S.Output |
| 1370 | } |
| 1371 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1372 | extension Combine::Publisher { |
| 1373 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) -> T) -> Combine::Publishers.Combine::Reduce<Self, T> |
| 1374 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) throws -> T) -> Combine::Publishers.Combine::TryReduce<Self, T> |
| 1375 | } |
| 1376 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1377 | extension Combine::Publishers { |
| 1378 | public struct Reduce<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1379 | public typealias Failure = Upstream.Failure |
| 1380 | public let upstream: Upstream |
| 1381 | public let initial: Output |
| 1382 | public let nextPartialResult: (Output, Upstream.Output) -> Output |
| 1383 | public init(upstream: Upstream, initial: Output, nextPartialResult: @escaping (Output, Upstream.Output) -> Output) |
| 1384 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, Upstream.Failure == S.Failure |
| 1385 | } |
| 1386 | public struct TryReduce<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1387 | public typealias Failure = Swift::Error |
| 1388 | public let upstream: Upstream |
| 1389 | public let initial: Output |
| 1390 | public let nextPartialResult: (Output, Upstream.Output) throws -> Output |
| 1391 | public init(upstream: Upstream, initial: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output) |
| 1392 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == any Swift::Error |
| 1393 | } |
| 1394 | } |
| 1395 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1396 | extension Combine::Publisher { |
| 1397 | public func compactMap<T>(_ transform: @escaping (Self.Output) -> T?) -> Combine::Publishers.Combine::CompactMap<Self, T> |
| 1398 | public func tryCompactMap<T>(_ transform: @escaping (Self.Output) throws -> T?) -> Combine::Publishers.Combine::TryCompactMap<Self, T> |
| 1399 | } |
| 1400 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1401 | extension Combine::Publishers { |
| 1402 | public struct CompactMap<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1403 | public typealias Failure = Upstream.Failure |
| 1404 | public let upstream: Upstream |
| 1405 | public let transform: (Upstream.Output) -> Output? |
| 1406 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) -> Output?) |
| 1407 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, Upstream.Failure == S.Failure |
| 1408 | } |
| 1409 | public struct TryCompactMap<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1410 | public typealias Failure = Swift::Error |
| 1411 | public let upstream: Upstream |
| 1412 | public let transform: (Upstream.Output) throws -> Output? |
| 1413 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output?) |
| 1414 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == any Swift::Error |
| 1415 | } |
| 1416 | } |
| 1417 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1418 | extension Combine::Publishers.Combine::CompactMap { |
| 1419 | public func compactMap<T>(_ transform: @escaping (Output) -> T?) -> Combine::Publishers.Combine::CompactMap<Upstream, T> |
| 1420 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine::Publishers.Combine::CompactMap<Upstream, T> |
| 1421 | } |
| 1422 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1423 | extension Combine::Publishers.Combine::TryCompactMap { |
| 1424 | public func compactMap<T>(_ transform: @escaping (Output) throws -> T?) -> Combine::Publishers.Combine::TryCompactMap<Upstream, T> |
| 1425 | } |
| 1426 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1427 | extension Combine::Publisher { |
| 1428 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge<Self, P> where P : Combine::Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 1429 | public func merge<B, C>(with b: B, _ c: C) -> Combine::Publishers.Combine::Merge3<Self, B, C> where B : Combine::Publisher, C : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output |
| 1430 | public func merge<B, C, D>(with b: B, _ c: C, _ d: D) -> Combine::Publishers.Combine::Merge4<Self, B, C, D> where B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output |
| 1431 | public func merge<B, C, D, E>(with b: B, _ c: C, _ d: D, _ e: E) -> Combine::Publishers.Combine::Merge5<Self, B, C, D, E> where B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output |
| 1432 | public func merge<B, C, D, E, F>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F) -> Combine::Publishers.Combine::Merge6<Self, B, C, D, E, F> where B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output |
| 1433 | public func merge<B, C, D, E, F, G>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G) -> Combine::Publishers.Combine::Merge7<Self, B, C, D, E, F, G> where B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, G : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output |
| 1434 | public func merge<B, C, D, E, F, G, H>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G, _ h: H) -> Combine::Publishers.Combine::Merge8<Self, B, C, D, E, F, G, H> where B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, G : Combine::Publisher, H : Combine::Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output, G.Failure == H.Failure, G.Output == H.Output |
| 1435 | public func merge(with other: Self) -> Combine::Publishers.Combine::MergeMany<Self> |
| 1436 | } |
| 1437 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1438 | extension Combine::Publishers { |
| 1439 | public struct Merge<A, B> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output { |
| 1440 | public typealias Output = A.Output |
| 1441 | public typealias Failure = A.Failure |
| 1442 | public let a: A |
| 1443 | public let b: B |
| 1444 | public init(_ a: A, _ b: B) |
| 1445 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, B.Failure == S.Failure, B.Output == S.Input |
| 1446 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge3<A, B, P> where P : Combine::Publisher, B.Failure == P.Failure, B.Output == P.Output |
| 1447 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine::Publishers.Combine::Merge4<A, B, Z, Y> where Z : Combine::Publisher, Y : Combine::Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1448 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine::Publishers.Combine::Merge5<A, B, Z, Y, X> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1449 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine::Publishers.Combine::Merge6<A, B, Z, Y, X, W> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1450 | public func merge<Z, Y, X, W, V>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V) -> Combine::Publishers.Combine::Merge7<A, B, Z, Y, X, W, V> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, V : Combine::Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output |
| 1451 | public func merge<Z, Y, X, W, V, U>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V, _ u: U) -> Combine::Publishers.Combine::Merge8<A, B, Z, Y, X, W, V, U> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, V : Combine::Publisher, U : Combine::Publisher, B.Failure == Z.Failure, B.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output, V.Failure == U.Failure, V.Output == U.Output |
| 1452 | } |
| 1453 | public struct Merge3<A, B, C> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output { |
| 1454 | public typealias Output = A.Output |
| 1455 | public typealias Failure = A.Failure |
| 1456 | public let a: A |
| 1457 | public let b: B |
| 1458 | public let c: C |
| 1459 | public init(_ a: A, _ b: B, _ c: C) |
| 1460 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, C.Failure == S.Failure, C.Output == S.Input |
| 1461 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge4<A, B, C, P> where P : Combine::Publisher, C.Failure == P.Failure, C.Output == P.Output |
| 1462 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine::Publishers.Combine::Merge5<A, B, C, Z, Y> where Z : Combine::Publisher, Y : Combine::Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1463 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine::Publishers.Combine::Merge6<A, B, C, Z, Y, X> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1464 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine::Publishers.Combine::Merge7<A, B, C, Z, Y, X, W> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1465 | public func merge<Z, Y, X, W, V>(with z: Z, _ y: Y, _ x: X, _ w: W, _ v: V) -> Combine::Publishers.Combine::Merge8<A, B, C, Z, Y, X, W, V> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, V : Combine::Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output, W.Failure == V.Failure, W.Output == V.Output |
| 1466 | } |
| 1467 | public struct Merge4<A, B, C, D> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output { |
| 1468 | public typealias Output = A.Output |
| 1469 | public typealias Failure = A.Failure |
| 1470 | public let a: A |
| 1471 | public let b: B |
| 1472 | public let c: C |
| 1473 | public let d: D |
| 1474 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 1475 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, D.Failure == S.Failure, D.Output == S.Input |
| 1476 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge5<A, B, C, D, P> where P : Combine::Publisher, D.Failure == P.Failure, D.Output == P.Output |
| 1477 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine::Publishers.Combine::Merge6<A, B, C, D, Z, Y> where Z : Combine::Publisher, Y : Combine::Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1478 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine::Publishers.Combine::Merge7<A, B, C, D, Z, Y, X> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1479 | public func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Combine::Publishers.Combine::Merge8<A, B, C, D, Z, Y, X, W> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, W : Combine::Publisher, D.Failure == Z.Failure, D.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output |
| 1480 | } |
| 1481 | public struct Merge5<A, B, C, D, E> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output { |
| 1482 | public typealias Output = A.Output |
| 1483 | public typealias Failure = A.Failure |
| 1484 | public let a: A |
| 1487 | public let d: D |
| 1488 | public let e: E |
| 1489 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E) |
| 1490 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, E.Failure == S.Failure, E.Output == S.Input |
| 1491 | public func merge<P>(with other: P) -> Combine.Publishers.Merge6<A, B, C, D, E, P> where P : Combine.Publisher, E.Failure == P.Failure, E.Output == P.Output |
| 1492 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine.Publishers.Merge7<A, B, C, D, E, Z, Y> where Z : Combine.Publisher, Y : Combine.Publisher, E.Failure == Z.Failure, E.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1493 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine.Publishers.Merge8<A, B, C, D, E, Z, Y, X> where Z : Combine.Publisher, Y : Combine.Publisher, X : Combine.Publisher, E.Failure == Z.Failure, E.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1494 | } |
| 1495 | public struct Merge6<A, B, C, D, E, F> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output { |
| 1496 | public typealias Output = A.Output |
| 1497 | public typealias Failure = A.Failure |
| 1498 | public let a: A |
| 1487 | public let d: D |
| 1488 | public let e: E |
| 1489 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E) |
| 1490 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, E.Failure == S.Failure, E.Output == S.Input |
| 1491 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge6<A, B, C, D, E, P> where P : Combine::Publisher, E.Failure == P.Failure, E.Output == P.Output |
| 1492 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine::Publishers.Combine::Merge7<A, B, C, D, E, Z, Y> where Z : Combine::Publisher, Y : Combine::Publisher, E.Failure == Z.Failure, E.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1493 | public func merge<Z, Y, X>(with z: Z, _ y: Y, _ x: X) -> Combine::Publishers.Combine::Merge8<A, B, C, D, E, Z, Y, X> where Z : Combine::Publisher, Y : Combine::Publisher, X : Combine::Publisher, E.Failure == Z.Failure, E.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output |
| 1494 | } |
| 1495 | public struct Merge6<A, B, C, D, E, F> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output { |
| 1496 | public typealias Output = A.Output |
| 1497 | public typealias Failure = A.Failure |
| 1498 | public let a: A |
| 1502 | public let e: E |
| 1503 | public let f: F |
| 1504 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F) |
| 1505 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, F.Failure == S.Failure, F.Output == S.Input |
| 1506 | public func merge<P>(with other: P) -> Combine.Publishers.Merge7<A, B, C, D, E, F, P> where P : Combine.Publisher, F.Failure == P.Failure, F.Output == P.Output |
| 1507 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine.Publishers.Merge8<A, B, C, D, E, F, Z, Y> where Z : Combine.Publisher, Y : Combine.Publisher, F.Failure == Z.Failure, F.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1508 | } |
| 1509 | public struct Merge7<A, B, C, D, E, F, G> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, G : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output { |
| 1510 | public typealias Output = A.Output |
| 1511 | public typealias Failure = A.Failure |
| 1512 | public let a: A |
| 1502 | public let e: E |
| 1503 | public let f: F |
| 1504 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F) |
| 1505 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, F.Failure == S.Failure, F.Output == S.Input |
| 1506 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge7<A, B, C, D, E, F, P> where P : Combine::Publisher, F.Failure == P.Failure, F.Output == P.Output |
| 1507 | public func merge<Z, Y>(with z: Z, _ y: Y) -> Combine::Publishers.Combine::Merge8<A, B, C, D, E, F, Z, Y> where Z : Combine::Publisher, Y : Combine::Publisher, F.Failure == Z.Failure, F.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output |
| 1508 | } |
| 1509 | public struct Merge7<A, B, C, D, E, F, G> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, G : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output { |
| 1510 | public typealias Output = A.Output |
| 1511 | public typealias Failure = A.Failure |
| 1512 | public let a: A |
| 1517 | public let f: F |
| 1518 | public let g: G |
| 1519 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G) |
| 1520 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, G.Failure == S.Failure, G.Output == S.Input |
| 1521 | public func merge<P>(with other: P) -> Combine.Publishers.Merge8<A, B, C, D, E, F, G, P> where P : Combine.Publisher, G.Failure == P.Failure, G.Output == P.Output |
| 1522 | } |
| 1523 | public struct Merge8<A, B, C, D, E, F, G, H> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, E : Combine.Publisher, F : Combine.Publisher, G : Combine.Publisher, H : Combine.Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output, G.Failure == H.Failure, G.Output == H.Output { |
| 1524 | public typealias Output = A.Output |
| 1525 | public typealias Failure = A.Failure |
| 1526 | public let a: A |
| 1517 | public let f: F |
| 1518 | public let g: G |
| 1519 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G) |
| 1520 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, G.Failure == S.Failure, G.Output == S.Input |
| 1521 | public func merge<P>(with other: P) -> Combine::Publishers.Combine::Merge8<A, B, C, D, E, F, G, P> where P : Combine::Publisher, G.Failure == P.Failure, G.Output == P.Output |
| 1522 | } |
| 1523 | public struct Merge8<A, B, C, D, E, F, G, H> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, E : Combine::Publisher, F : Combine::Publisher, G : Combine::Publisher, H : Combine::Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output, G.Failure == H.Failure, G.Output == H.Output { |
| 1524 | public typealias Output = A.Output |
| 1525 | public typealias Failure = A.Failure |
| 1526 | public let a: A |
| 1532 | public let g: G |
| 1533 | public let h: H |
| 1534 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G, _ h: H) |
| 1535 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, H.Failure == S.Failure, H.Output == S.Input |
| 1536 | } |
| 1537 | public struct MergeMany<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1538 | public typealias Output = Upstream.Output |
| 1539 | public typealias Failure = Upstream.Failure |
| 1540 | public let publishers: [Upstream] |
| 1541 | public init(_ upstream: Upstream...) |
| 1542 | public init<S>(_ upstream: S) where Upstream == S.Element, S : Swift.Sequence |
| 1543 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1544 | public func merge(with other: Upstream) -> Combine.Publishers.MergeMany<Upstream> |
| 1545 | } |
| 1546 | } |
| 1547 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1548 | extension Combine.Publishers.Merge : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable { |
| 1549 | public static func == (lhs: Combine.Publishers.Merge<A, B>, rhs: Combine.Publishers.Merge<A, B>) -> Swift.Bool |
| 1550 | } |
| 1551 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1552 | extension Combine.Publishers.Merge3 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable { |
| 1553 | public static func == (lhs: Combine.Publishers.Merge3<A, B, C>, rhs: Combine.Publishers.Merge3<A, B, C>) -> Swift.Bool |
| 1554 | } |
| 1555 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1556 | extension Combine.Publishers.Merge4 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable { |
| 1557 | public static func == (lhs: Combine.Publishers.Merge4<A, B, C, D>, rhs: Combine.Publishers.Merge4<A, B, C, D>) -> Swift.Bool |
| 1558 | } |
| 1559 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1560 | extension Combine.Publishers.Merge5 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable, E : Swift.Equatable { |
| 1561 | public static func == (lhs: Combine.Publishers.Merge5<A, B, C, D, E>, rhs: Combine.Publishers.Merge5<A, B, C, D, E>) -> Swift.Bool |
| 1562 | } |
| 1563 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1564 | extension Combine.Publishers.Merge6 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable, E : Swift.Equatable, F : Swift.Equatable { |
| 1565 | public static func == (lhs: Combine.Publishers.Merge6<A, B, C, D, E, F>, rhs: Combine.Publishers.Merge6<A, B, C, D, E, F>) -> Swift.Bool |
| 1566 | } |
| 1567 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1568 | extension Combine.Publishers.Merge7 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable, E : Swift.Equatable, F : Swift.Equatable, G : Swift.Equatable { |
| 1569 | public static func == (lhs: Combine.Publishers.Merge7<A, B, C, D, E, F, G>, rhs: Combine.Publishers.Merge7<A, B, C, D, E, F, G>) -> Swift.Bool |
| 1570 | } |
| 1571 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1572 | extension Combine.Publishers.Merge8 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable, E : Swift.Equatable, F : Swift.Equatable, G : Swift.Equatable, H : Swift.Equatable { |
| 1573 | public static func == (lhs: Combine.Publishers.Merge8<A, B, C, D, E, F, G, H>, rhs: Combine.Publishers.Merge8<A, B, C, D, E, F, G, H>) -> Swift.Bool |
| 1574 | } |
| 1575 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1576 | extension Combine.Publishers.MergeMany : Swift.Equatable where Upstream : Swift.Equatable { |
| 1577 | public static func == (lhs: Combine.Publishers.MergeMany<Upstream>, rhs: Combine.Publishers.MergeMany<Upstream>) -> Swift.Bool |
| 1578 | } |
| 1579 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1580 | extension Swift.Result { |
| 1581 | public var publisher: Swift.Result<Success, Failure>.Publisher { |
| 1582 | get |
| 1583 | } |
| 1584 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1585 | public struct Publisher : Combine.Publisher { |
| 1586 | public typealias Output = Success |
| 1587 | public let result: Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure> |
| 1588 | public init(_ result: Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>) |
| 1589 | public init(_ output: Swift.Result<Success, Failure>.Publisher.Output) |
| 1590 | public init(_ failure: Failure) |
| 1591 | public func receive<S>(subscriber: S) where Success == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 1592 | } |
| 1593 | } |
| 1594 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1595 | extension Swift.Result.Publisher : Swift.Equatable where Success : Swift.Equatable, Failure : Swift.Equatable { |
| 1596 | public static func == (lhs: Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher, rhs: Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher) -> Swift.Bool |
| 1597 | } |
| 1598 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1599 | extension Swift.Result.Publisher where Success : Swift.Equatable { |
| 1600 | public func contains(_ output: Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 1601 | public func removeDuplicates() -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1602 | } |
| 1603 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1604 | extension Swift.Result.Publisher where Success : Swift.Comparable { |
| 1605 | public func min() -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1606 | public func max() -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1607 | } |
| 1608 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1609 | extension Swift.Result.Publisher { |
| 1610 | public func allSatisfy(_ predicate: (Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Bool) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 1611 | public func tryAllSatisfy(_ predicate: (Swift.Result<Success, Failure>.Publisher.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 1612 | public func collect() -> Swift.Result<[Swift.Result<Success, Failure>.Publisher.Output], Failure>.Publisher |
| 1613 | public func min(by areInIncreasingOrder: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1614 | public func tryMin(by areInIncreasingOrder: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, any Swift.Error>.Publisher |
| 1615 | public func max(by areInIncreasingOrder: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1616 | public func tryMax(by areInIncreasingOrder: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, any Swift.Error>.Publisher |
| 1617 | public func contains(where predicate: (Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Bool) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 1618 | public func tryContains(where predicate: (Swift.Result<Success, Failure>.Publisher.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 1619 | public func count() -> Swift.Result<Swift.Int, Failure>.Publisher |
| 1620 | public func first() -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1621 | public func last() -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1622 | public func ignoreOutput() -> Combine.Empty<Swift.Result<Success, Failure>.Publisher.Output, Failure> |
| 1623 | public func map<T>(_ transform: (Swift.Result<Success, Failure>.Publisher.Output) -> T) -> Swift.Result<T, Failure>.Publisher |
| 1624 | public func tryMap<T>(_ transform: (Swift.Result<Success, Failure>.Publisher.Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 1625 | public func mapError<E>(_ transform: (Failure) -> E) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, E>.Publisher where E : Swift.Error |
| 1626 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Result<Success, Failure>.Publisher.Output) -> T) -> Swift.Result<T, Failure>.Publisher |
| 1627 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Result<Success, Failure>.Publisher.Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 1628 | public func removeDuplicates(by predicate: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1629 | public func tryRemoveDuplicates(by predicate: (Swift.Result<Success, Failure>.Publisher.Output, Swift.Result<Success, Failure>.Publisher.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, any Swift.Error>.Publisher |
| 1630 | public func replaceError(with output: Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Swift.Never>.Publisher |
| 1631 | public func replaceEmpty(with output: Swift.Result<Success, Failure>.Publisher.Output) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1632 | public func retry(_ times: Swift.Int) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, Failure>.Publisher |
| 1633 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Result<Success, Failure>.Publisher.Output) -> T) -> Swift.Result<T, Failure>.Publisher |
| 1634 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift.Result<Success, Failure>.Publisher.Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 1635 | } |
| 1636 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1637 | extension Swift.Result.Publisher where Failure == Swift.Never { |
| 1638 | public func setFailureType<E>(to failureType: E.Type) -> Swift.Result<Swift.Result<Success, Failure>.Publisher.Output, E>.Publisher where E : Swift.Error |
| 1639 | } |
| 1640 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1641 | extension Combine.Publisher { |
| 1642 | public func scan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) -> T) -> Combine.Publishers.Scan<Self, T> |
| 1643 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) throws -> T) -> Combine.Publishers.TryScan<Self, T> |
| 1644 | } |
| 1645 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1646 | extension Combine.Publishers { |
| 1647 | public struct Scan<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1648 | public typealias Failure = Upstream.Failure |
| 1649 | public let upstream: Upstream |
| 1650 | public let initialResult: Output |
| 1651 | public let nextPartialResult: (Output, Upstream.Output) -> Output |
| 1652 | public init(upstream: Upstream, initialResult: Output, nextPartialResult: @escaping (Output, Upstream.Output) -> Output) |
| 1653 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, Upstream.Failure == S.Failure |
| 1654 | } |
| 1655 | public struct TryScan<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1656 | public typealias Failure = Swift.Error |
| 1657 | public let upstream: Upstream |
| 1658 | public let initialResult: Output |
| 1659 | public let nextPartialResult: (Output, Upstream.Output) throws -> Output |
| 1660 | public init(upstream: Upstream, initialResult: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output) |
| 1661 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error |
| 1662 | } |
| 1663 | } |
| 1664 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1665 | public struct ImmediateScheduler : Combine.Scheduler { |
| 1666 | public struct SchedulerTimeType : Swift.Strideable { |
| 1667 | public func distance(to other: Combine.ImmediateScheduler.SchedulerTimeType) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1668 | public func advanced(by n: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Combine.ImmediateScheduler.SchedulerTimeType |
| 1669 | public struct Stride : Swift.ExpressibleByFloatLiteral, Swift.Comparable, Swift.SignedNumeric, Swift.Codable, Combine.SchedulerTimeIntervalConvertible { |
| 1670 | public typealias FloatLiteralType = Swift.Double |
| 1671 | public typealias IntegerLiteralType = Swift.Int |
| 1672 | public typealias Magnitude = Swift.Int |
| 1673 | public var magnitude: Swift.Int |
| 1674 | public init(_ value: Swift.Int) |
| 1675 | public init(integerLiteral value: Swift.Int) |
| 1676 | public init(floatLiteral value: Swift.Double) |
| 1677 | public init?<T>(exactly source: T) where T : Swift.BinaryInteger |
| 1678 | public static func < (lhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Swift.Bool |
| 1679 | public static func * (lhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1680 | public static func + (lhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1681 | public static func - (lhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1682 | public static func -= (lhs: inout Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) |
| 1683 | public static func *= (lhs: inout Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) |
| 1684 | public static func += (lhs: inout Combine.ImmediateScheduler.SchedulerTimeType.Stride, rhs: Combine.ImmediateScheduler.SchedulerTimeType.Stride) |
| 1685 | public static func seconds(_ s: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1686 | public static func seconds(_ s: Swift.Double) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1687 | public static func milliseconds(_ ms: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1688 | public static func microseconds(_ us: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1689 | public static func nanoseconds(_ ns: Swift.Int) -> Combine.ImmediateScheduler.SchedulerTimeType.Stride |
| 1690 | public static func == (a: Combine.ImmediateScheduler.SchedulerTimeType.Stride, b: Combine.ImmediateScheduler.SchedulerTimeType.Stride) -> Swift.Bool |
| 1691 | public func encode(to encoder: any Swift.Encoder) throws |
| 1692 | public init(from decoder: any Swift.Decoder) throws |
| 1693 | } |
| 1694 | } |
| 1695 | public typealias SchedulerOptions = Swift.Never |
| 1696 | public static let shared: Combine.ImmediateScheduler |
| 1697 | public func schedule(options: Combine.ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Swift.Void) |
| 1698 | public var now: Combine.ImmediateScheduler.SchedulerTimeType { |
| 1699 | get |
| 1700 | } |
| 1701 | public var minimumTolerance: Combine.ImmediateScheduler.SchedulerTimeType.Stride { |
| 1702 | get |
| 1703 | } |
| 1704 | public func schedule(after date: Combine.ImmediateScheduler.SchedulerTimeType, tolerance: Combine.ImmediateScheduler.SchedulerTimeType.Stride, options: Combine.ImmediateScheduler.SchedulerOptions?, _ action: @escaping () -> Swift.Void) |
| 1705 | @discardableResult |
| 1706 | 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 |
| 1707 | } |
| 1708 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1709 | extension Combine.Publisher { |
| 1710 | public func count() -> Combine.Publishers.Count<Self> |
| 1711 | } |
| 1712 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1713 | extension Combine.Publishers { |
| 1714 | public struct Count<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1715 | public typealias Output = Swift.Int |
| 1716 | public typealias Failure = Upstream.Failure |
| 1717 | public let upstream: Upstream |
| 1718 | public init(upstream: Upstream) |
| 1719 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Swift.Int |
| 1720 | } |
| 1721 | } |
| 1722 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1723 | extension Combine.Publishers.Count : Swift.Equatable where Upstream : Swift.Equatable { |
| 1724 | public static func == (lhs: Combine.Publishers.Count<Upstream>, rhs: Combine.Publishers.Count<Upstream>) -> Swift.Bool |
| 1725 | } |
| 1726 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1727 | extension Combine.Publisher { |
| 1728 | public func last(where predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.LastWhere<Self> |
| 1729 | public func tryLast(where predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryLastWhere<Self> |
| 1730 | } |
| 1731 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1732 | extension Combine.Publishers { |
| 1733 | public struct LastWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1734 | public typealias Output = Upstream.Output |
| 1735 | public typealias Failure = Upstream.Failure |
| 1736 | public let upstream: Upstream |
| 1737 | public let predicate: (Combine.Publishers.LastWhere<Upstream>.Output) -> Swift.Bool |
| 1738 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.LastWhere<Upstream>.Output) -> Swift.Bool) |
| 1739 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1740 | } |
| 1741 | public struct TryLastWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1742 | public typealias Output = Upstream.Output |
| 1743 | public typealias Failure = Swift.Error |
| 1744 | public let upstream: Upstream |
| 1745 | public let predicate: (Combine.Publishers.TryLastWhere<Upstream>.Output) throws -> Swift.Bool |
| 1746 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryLastWhere<Upstream>.Output) throws -> Swift.Bool) |
| 1747 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 1748 | } |
| 1749 | } |
| 1750 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1751 | extension Combine.Publisher { |
| 1752 | public func ignoreOutput() -> Combine.Publishers.IgnoreOutput<Self> |
| 1753 | } |
| 1754 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1755 | extension Combine.Publishers { |
| 1756 | public struct IgnoreOutput<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1757 | public typealias Output = Swift.Never |
| 1758 | public typealias Failure = Upstream.Failure |
| 1759 | public let upstream: Upstream |
| 1760 | public init(upstream: Upstream) |
| 1761 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, S.Input == Swift.Never |
| 1762 | } |
| 1763 | } |
| 1764 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1765 | extension Combine.Publishers.IgnoreOutput : Swift.Equatable where Upstream : Swift.Equatable { |
| 1766 | public static func == (lhs: Combine.Publishers.IgnoreOutput<Upstream>, rhs: Combine.Publishers.IgnoreOutput<Upstream>) -> Swift.Bool |
| 1767 | } |
| 1768 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1769 | final public class CurrentValueSubject<Output, Failure> : Combine.Subject where Failure : Swift.Error { |
| 1770 | final public var value: Output { |
| 1771 | get |
| 1772 | set |
| 1773 | } |
| 1774 | public init(_ value: Output) |
| 1775 | @objc deinit |
| 1776 | final public func send(subscription: any Combine.Subscription) |
| 1777 | final public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 1778 | final public func send(_ input: Output) |
| 1779 | final public func send(completion: Combine.Subscribers.Completion<Failure>) |
| 1780 | } |
| 1781 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1782 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 1783 | public func assign<Root>(to keyPath: Swift.ReferenceWritableKeyPath<Root, Self.Output>, on object: Root) -> Combine.AnyCancellable |
| 1784 | } |
| 1785 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1786 | extension Combine.Subscribers { |
| 1787 | final public class Assign<Root, Input> : Combine.Subscriber, Combine.Cancellable, Swift.CustomStringConvertible, Swift.CustomReflectable, Swift.CustomPlaygroundDisplayConvertible { |
| 1788 | public typealias Failure = Swift.Never |
| 1789 | final public var object: Root? { |
| 1790 | get |
| 1791 | } |
| 1792 | final public let keyPath: Swift.ReferenceWritableKeyPath<Root, Input> |
| 1793 | final public var description: Swift.String { |
| 1794 | get |
| 1795 | } |
| 1796 | final public var customMirror: Swift.Mirror { |
| 1797 | get |
| 1798 | } |
| 1799 | final public var playgroundDescription: Any { |
| 1800 | get |
| 1801 | } |
| 1802 | public init(object: Root, keyPath: Swift.ReferenceWritableKeyPath<Root, Input>) |
| 1803 | @objc deinit |
| 1804 | final public func receive(subscription: any Combine.Subscription) |
| 1805 | final public func receive(_ value: Input) -> Combine.Subscribers.Demand |
| 1806 | final public func receive(completion: Combine.Subscribers.Completion<Swift.Never>) |
| 1807 | final public func cancel() |
| 1808 | } |
| 1809 | } |
| 1810 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1811 | public protocol SchedulerTimeIntervalConvertible { |
| 1812 | static func seconds(_ s: Swift.Int) -> Self |
| 1813 | static func seconds(_ s: Swift.Double) -> Self |
| 1814 | static func milliseconds(_ ms: Swift.Int) -> Self |
| 1815 | static func microseconds(_ us: Swift.Int) -> Self |
| 1816 | static func nanoseconds(_ ns: Swift.Int) -> Self |
| 1817 | } |
| 1818 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1819 | public protocol Scheduler<SchedulerTimeType> { |
| 1820 | associatedtype SchedulerTimeType : Swift.Strideable where Self.SchedulerTimeType.Stride : Combine.SchedulerTimeIntervalConvertible |
| 1821 | associatedtype SchedulerOptions |
| 1822 | var now: Self.SchedulerTimeType { get } |
| 1823 | var minimumTolerance: Self.SchedulerTimeType.Stride { get } |
| 1824 | func schedule(options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) |
| 1825 | func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) |
| 1826 | func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable |
| 1827 | } |
| 1828 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1829 | extension Combine.Scheduler { |
| 1830 | public func schedule(after date: Self.SchedulerTimeType, _ action: @escaping () -> Swift.Void) |
| 1831 | public func schedule(_ action: @escaping () -> Swift.Void) |
| 1832 | public func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) |
| 1833 | public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable |
| 1834 | public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift.Void) -> any Combine.Cancellable |
| 1835 | } |
| 1836 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1837 | extension Combine.Publisher where Self.Failure == Self.Output.Failure, Self.Output : Combine.Publisher { |
| 1838 | public func switchToLatest() -> Combine.Publishers.SwitchToLatest<Self.Output, Self> |
| 1839 | } |
| 1840 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1841 | extension Combine.Publisher where Self.Failure == Swift.Never, Self.Output : Combine.Publisher { |
| 1842 | public func switchToLatest() -> Combine.Publishers.SwitchToLatest<Self.Output, Combine.Publishers.SetFailureType<Self, Self.Output.Failure>> |
| 1843 | } |
| 1844 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1845 | extension Combine.Publisher where Self.Failure == Swift.Never, Self.Output : Combine.Publisher, Self.Output.Failure == Swift.Never { |
| 1846 | public func switchToLatest() -> Combine.Publishers.SwitchToLatest<Self.Output, Self> |
| 1847 | } |
| 1848 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1849 | extension Combine.Publisher where Self.Output : Combine.Publisher, Self.Output.Failure == Swift.Never { |
| 1850 | public func switchToLatest() -> Combine.Publishers.SwitchToLatest<Combine.Publishers.SetFailureType<Self.Output, Self.Failure>, Combine.Publishers.Map<Self, Combine.Publishers.SetFailureType<Self.Output, Self.Failure>>> |
| 1851 | } |
| 1852 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1853 | extension Combine.Publishers { |
| 1854 | public struct SwitchToLatest<P, Upstream> : Combine.Publisher where P : Combine.Publisher, P == Upstream.Output, Upstream : Combine.Publisher, P.Failure == Upstream.Failure { |
| 1855 | public typealias Output = P.Output |
| 1856 | public typealias Failure = P.Failure |
| 1857 | public let upstream: Upstream |
| 1858 | public init(upstream: Upstream) |
| 1859 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, P.Output == S.Input, Upstream.Failure == S.Failure |
| 1860 | } |
| 1861 | } |
| 1862 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1863 | extension Combine.Publisher { |
| 1864 | public func retry(_ retries: Swift.Int) -> Combine.Publishers.Retry<Self> |
| 1865 | } |
| 1866 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1867 | extension Combine.Publishers { |
| 1868 | public struct Retry<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1869 | public typealias Output = Upstream.Output |
| 1870 | public typealias Failure = Upstream.Failure |
| 1871 | public let upstream: Upstream |
| 1872 | public let retries: Swift.Int? |
| 1873 | public init(upstream: Upstream, retries: Swift.Int?) |
| 1874 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1875 | } |
| 1876 | } |
| 1877 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1878 | extension Combine.Publishers.Retry : Swift.Equatable where Upstream : Swift.Equatable { |
| 1879 | public static func == (lhs: Combine.Publishers.Retry<Upstream>, rhs: Combine.Publishers.Retry<Upstream>) -> Swift.Bool |
| 1880 | } |
| 1881 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1882 | extension Combine.Publisher { |
| 1883 | public func mapError<E>(_ transform: @escaping (Self.Failure) -> E) -> Combine.Publishers.MapError<Self, E> where E : Swift.Error |
| 1884 | } |
| 1885 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1886 | extension Combine.Publishers { |
| 1887 | public struct MapError<Upstream, Failure> : Combine.Publisher where Upstream : Combine.Publisher, Failure : Swift.Error { |
| 1888 | public typealias Output = Upstream.Output |
| 1889 | public let upstream: Upstream |
| 1890 | public let transform: (Upstream.Failure) -> Failure |
| 1891 | public init(upstream: Upstream, transform: @escaping (Upstream.Failure) -> Failure) |
| 1892 | public init(upstream: Upstream, _ map: @escaping (Upstream.Failure) -> Failure) |
| 1893 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine.Subscriber, Upstream.Output == S.Input |
| 1894 | } |
| 1895 | } |
| 1896 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1897 | extension Combine.Publisher { |
| 1898 | public func throttle<S>(for interval: S.SchedulerTimeType.Stride, scheduler: S, latest: Swift.Bool) -> Combine.Publishers.Throttle<Self, S> where S : Combine.Scheduler |
| 1899 | } |
| 1900 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1901 | extension Combine.Publishers { |
| 1902 | public struct Throttle<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 1903 | public typealias Output = Upstream.Output |
| 1904 | public typealias Failure = Upstream.Failure |
| 1905 | public let upstream: Upstream |
| 1906 | public let interval: Context.SchedulerTimeType.Stride |
| 1907 | public let scheduler: Context |
| 1908 | public let latest: Swift.Bool |
| 1909 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, scheduler: Context, latest: Swift.Bool) |
| 1910 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1911 | } |
| 1912 | } |
| 1913 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1914 | extension Combine.Publisher { |
| 1915 | public func share() -> Combine.Publishers.Share<Self> |
| 1916 | } |
| 1917 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1918 | extension Combine.Publishers { |
| 1919 | final public class Share<Upstream> : Combine.Publisher, Swift.Equatable where Upstream : Combine.Publisher { |
| 1920 | public typealias Output = Upstream.Output |
| 1921 | public typealias Failure = Upstream.Failure |
| 1922 | final public let upstream: Upstream |
| 1923 | public init(upstream: Upstream) |
| 1924 | final public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1925 | public static func == (lhs: Combine.Publishers.Share<Upstream>, rhs: Combine.Publishers.Share<Upstream>) -> Swift.Bool |
| 1926 | @objc deinit |
| 1927 | } |
| 1928 | } |
| 1929 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1930 | extension Combine.Publisher where Self.Output : Swift.Comparable { |
| 1931 | public func min() -> Combine.Publishers.Comparison<Self> |
| 1932 | public func max() -> Combine.Publishers.Comparison<Self> |
| 1933 | } |
| 1934 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1935 | extension Combine.Publisher { |
| 1936 | public func min(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) -> Swift.Bool) -> Combine.Publishers.Comparison<Self> |
| 1937 | public func tryMin(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryComparison<Self> |
| 1938 | public func max(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) -> Swift.Bool) -> Combine.Publishers.Comparison<Self> |
| 1939 | public func tryMax(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryComparison<Self> |
| 1940 | } |
| 1941 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1942 | extension Combine.Publishers { |
| 1943 | public struct Comparison<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1944 | public typealias Output = Upstream.Output |
| 1945 | public typealias Failure = Upstream.Failure |
| 1946 | public let upstream: Upstream |
| 1947 | public let areInIncreasingOrder: (Upstream.Output, Upstream.Output) -> Swift.Bool |
| 1948 | public init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) -> Swift.Bool) |
| 1949 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1950 | } |
| 1951 | public struct TryComparison<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1952 | public typealias Output = Upstream.Output |
| 1953 | public typealias Failure = Swift.Error |
| 1954 | public let upstream: Upstream |
| 1955 | public let areInIncreasingOrder: (Upstream.Output, Upstream.Output) throws -> Swift.Bool |
| 1956 | public init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) throws -> Swift.Bool) |
| 1957 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 1958 | } |
| 1959 | } |
| 1960 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1961 | extension Combine.Publisher { |
| 1962 | public func replaceNil<T>(with output: T) -> Combine.Publishers.Map<Self, T> where Self.Output == T? |
| 1963 | } |
| 1964 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1965 | extension Combine.Publisher { |
| 1966 | public func replaceError(with output: Self.Output) -> Combine.Publishers.ReplaceError<Self> |
| 1967 | public func replaceEmpty(with output: Self.Output) -> Combine.Publishers.ReplaceEmpty<Self> |
| 1968 | } |
| 1969 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1970 | extension Combine.Publishers { |
| 1971 | public struct ReplaceEmpty<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1972 | public typealias Output = Upstream.Output |
| 1973 | public typealias Failure = Upstream.Failure |
| 1974 | public let output: Combine.Publishers.ReplaceEmpty<Upstream>.Output |
| 1975 | public let upstream: Upstream |
| 1976 | public init(upstream: Upstream, output: Combine.Publishers.ReplaceEmpty<Upstream>.Output) |
| 1977 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1978 | } |
| 1979 | public struct ReplaceError<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 1980 | public typealias Output = Upstream.Output |
| 1981 | public typealias Failure = Swift.Never |
| 1982 | public let output: Combine.Publishers.ReplaceError<Upstream>.Output |
| 1983 | public let upstream: Upstream |
| 1984 | public init(upstream: Upstream, output: Combine.Publishers.ReplaceError<Upstream>.Output) |
| 1985 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Never |
| 1986 | } |
| 1987 | } |
| 1988 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1989 | extension Combine.Publishers.ReplaceEmpty : Swift.Equatable where Upstream : Swift.Equatable, Upstream.Output : Swift.Equatable { |
| 1990 | public static func == (lhs: Combine.Publishers.ReplaceEmpty<Upstream>, rhs: Combine.Publishers.ReplaceEmpty<Upstream>) -> Swift.Bool |
| 1991 | } |
| 1992 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1993 | extension Combine.Publishers.ReplaceError : Swift.Equatable where Upstream : Swift.Equatable, Upstream.Output : Swift.Equatable { |
| 1994 | public static func == (lhs: Combine.Publishers.ReplaceError<Upstream>, rhs: Combine.Publishers.ReplaceError<Upstream>) -> Swift.Bool |
| 1995 | } |
| 1996 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1997 | extension Combine.Publisher { |
| 1998 | public func assertNoFailure(_ prefix: Swift.String = "", file: Swift.StaticString = #file, line: Swift.UInt = #line) -> Combine.Publishers.AssertNoFailure<Self> |
| 1999 | } |
| 2000 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2001 | extension Combine.Publishers { |
| 2002 | public struct AssertNoFailure<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2003 | public typealias Output = Upstream.Output |
| 2004 | public typealias Failure = Swift.Never |
| 2005 | public let upstream: Upstream |
| 2006 | public let prefix: Swift.String |
| 2007 | public let file: Swift.StaticString |
| 2008 | public let line: Swift.UInt |
| 2009 | public init(upstream: Upstream, prefix: Swift.String, file: Swift.StaticString, line: Swift.UInt) |
| 2010 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == Swift.Never |
| 2011 | } |
| 2012 | } |
| 2013 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2014 | extension Combine.Publisher { |
| 2015 | public func drop<P>(untilOutputFrom publisher: P) -> Combine.Publishers.DropUntilOutput<Self, P> where P : Combine.Publisher, Self.Failure == P.Failure |
| 2016 | } |
| 2017 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2018 | extension Combine.Publishers { |
| 2019 | public struct DropUntilOutput<Upstream, Other> : Combine.Publisher where Upstream : Combine.Publisher, Other : Combine.Publisher, Upstream.Failure == Other.Failure { |
| 2020 | public typealias Output = Upstream.Output |
| 2021 | public typealias Failure = Upstream.Failure |
| 2022 | public let upstream: Upstream |
| 2023 | public let other: Other |
| 2024 | public init(upstream: Upstream, other: Other) |
| 2025 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, Other.Failure == S.Failure |
| 2026 | } |
| 2027 | } |
| 2028 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2029 | extension Combine.Publishers.DropUntilOutput : Swift.Equatable where Upstream : Swift.Equatable, Other : Swift.Equatable { |
| 2030 | public static func == (lhs: Combine.Publishers.DropUntilOutput<Upstream, Other>, rhs: Combine.Publishers.DropUntilOutput<Upstream, Other>) -> Swift.Bool |
| 2031 | } |
| 2032 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2033 | extension Combine.Publisher { |
| 2034 | public func handleEvents(receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Self.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion<Self.Failure>) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)? = nil) -> Combine.Publishers.HandleEvents<Self> |
| 2035 | } |
| 2036 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2037 | extension Combine.Publishers { |
| 2038 | public struct HandleEvents<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2039 | public typealias Output = Upstream.Output |
| 2040 | public typealias Failure = Upstream.Failure |
| 2041 | public let upstream: Upstream |
| 2042 | public var receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? |
| 2043 | public var receiveOutput: ((Combine.Publishers.HandleEvents<Upstream>.Output) -> Swift.Void)? |
| 2044 | public var receiveCompletion: ((Combine.Subscribers.Completion<Combine.Publishers.HandleEvents<Upstream>.Failure>) -> Swift.Void)? |
| 2045 | public var receiveCancel: (() -> Swift.Void)? |
| 2046 | public var receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)? |
| 2047 | public init(upstream: Upstream, receiveSubscription: ((any Combine.Subscription) -> Swift.Void)? = nil, receiveOutput: ((Combine.Publishers.HandleEvents<Upstream>.Output) -> Swift.Void)? = nil, receiveCompletion: ((Combine.Subscribers.Completion<Combine.Publishers.HandleEvents<Upstream>.Failure>) -> Swift.Void)? = nil, receiveCancel: (() -> Swift.Void)? = nil, receiveRequest: ((Combine.Subscribers.Demand) -> Swift.Void)?) |
| 2048 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2049 | } |
| 2050 | } |
| 2051 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2052 | extension Combine.Publisher { |
| 2053 | public func prepend(_ elements: Self.Output...) -> Combine.Publishers.Concatenate<Combine.Publishers.Sequence<[Self.Output], Self.Failure>, Self> |
| 2054 | public func prepend<S>(_ elements: S) -> Combine.Publishers.Concatenate<Combine.Publishers.Sequence<S, Self.Failure>, Self> where S : Swift.Sequence, Self.Output == S.Element |
| 2055 | public func prepend<P>(_ publisher: P) -> Combine.Publishers.Concatenate<P, Self> where P : Combine.Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 2056 | public func append(_ elements: Self.Output...) -> Combine.Publishers.Concatenate<Self, Combine.Publishers.Sequence<[Self.Output], Self.Failure>> |
| 2057 | public func append<S>(_ elements: S) -> Combine.Publishers.Concatenate<Self, Combine.Publishers.Sequence<S, Self.Failure>> where S : Swift.Sequence, Self.Output == S.Element |
| 2058 | public func append<P>(_ publisher: P) -> Combine.Publishers.Concatenate<Self, P> where P : Combine.Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 2059 | } |
| 2060 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2061 | extension Combine.Publishers { |
| 2062 | public struct Concatenate<Prefix, Suffix> : Combine.Publisher where Prefix : Combine.Publisher, Suffix : Combine.Publisher, Prefix.Failure == Suffix.Failure, Prefix.Output == Suffix.Output { |
| 2063 | public typealias Output = Suffix.Output |
| 2064 | public typealias Failure = Suffix.Failure |
| 2065 | public let prefix: Prefix |
| 2066 | public let suffix: Suffix |
| 2067 | public init(prefix: Prefix, suffix: Suffix) |
| 2068 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Suffix.Failure == S.Failure, Suffix.Output == S.Input |
| 2069 | } |
| 2070 | } |
| 2071 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2072 | extension Combine.Publishers.Concatenate : Swift.Equatable where Prefix : Swift.Equatable, Suffix : Swift.Equatable { |
| 2073 | public static func == (lhs: Combine.Publishers.Concatenate<Prefix, Suffix>, rhs: Combine.Publishers.Concatenate<Prefix, Suffix>) -> Swift.Bool |
| 2074 | } |
| 2075 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2076 | public struct CombineIdentifier : Swift.Hashable, Swift.CustomStringConvertible { |
| 2077 | public init() |
| 2078 | public init(_ obj: Swift.AnyObject) |
| 2079 | public var description: Swift.String { |
| 2080 | get |
| 2081 | } |
| 2082 | public static func == (a: Combine.CombineIdentifier, b: Combine.CombineIdentifier) -> Swift.Bool |
| 2083 | public func hash(into hasher: inout Swift.Hasher) |
| 2084 | public var hashValue: Swift.Int { |
| 2085 | get |
| 2086 | } |
| 2087 | } |
| 2088 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2089 | public protocol CustomCombineIdentifierConvertible { |
| 2090 | var combineIdentifier: Combine.CombineIdentifier { get } |
| 2091 | } |
| 2092 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2093 | extension Combine.CustomCombineIdentifierConvertible where Self : AnyObject { |
| 2094 | public var combineIdentifier: Combine.CombineIdentifier { |
| 2095 | get |
| 2096 | } |
| 2097 | } |
| 2098 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2099 | extension Combine.Publisher { |
| 2100 | public func debounce<S>(for dueTime: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil) -> Combine.Publishers.Debounce<Self, S> where S : Combine.Scheduler |
| 2101 | } |
| 2102 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2103 | extension Combine.Publishers { |
| 2104 | public struct Debounce<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 2105 | public typealias Output = Upstream.Output |
| 2106 | public typealias Failure = Upstream.Failure |
| 2107 | public let upstream: Upstream |
| 2108 | public let dueTime: Context.SchedulerTimeType.Stride |
| 2109 | public let scheduler: Context |
| 2110 | public let options: Context.SchedulerOptions? |
| 2111 | public init(upstream: Upstream, dueTime: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions?) |
| 2112 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2113 | } |
| 2114 | } |
| 2115 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2116 | public struct Fail<Output, Failure> : Combine.Publisher where Failure : Swift.Error { |
| 2117 | public init(error: Failure) |
| 2118 | public init(outputType: Output.Type, failure: Failure) |
| 2119 | public let error: Failure |
| 2120 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 2121 | } |
| 2122 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2123 | extension Combine.Fail : Swift.Equatable where Failure : Swift.Equatable { |
| 2124 | public static func == (lhs: Combine.Fail<Output, Failure>, rhs: Combine.Fail<Output, Failure>) -> Swift.Bool |
| 2125 | } |
| 2126 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2127 | extension Combine.Publisher { |
| 2128 | public func last() -> Combine.Publishers.Last<Self> |
| 2129 | } |
| 2130 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2131 | extension Combine.Publishers { |
| 2132 | public struct Last<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2133 | public typealias Output = Upstream.Output |
| 2134 | public typealias Failure = Upstream.Failure |
| 2135 | public let upstream: Upstream |
| 2136 | public init(upstream: Upstream) |
| 2137 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2138 | } |
| 2139 | } |
| 2140 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2141 | extension Combine.Publishers.Last : Swift.Equatable where Upstream : Swift.Equatable { |
| 2142 | public static func == (lhs: Combine.Publishers.Last<Upstream>, rhs: Combine.Publishers.Last<Upstream>) -> Swift.Bool |
| 2143 | } |
| 2144 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2145 | @usableFromInline |
| 2146 | @_fixed_layout internal class PublisherBoxBase<Output, Failure> : Combine.Publisher where Failure : Swift.Error { |
| 2147 | @inlinable internal init() {} |
| 2148 | @objc @inlinable deinit {} |
| 2149 | @usableFromInline |
| 2150 | internal func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber |
| 2151 | } |
| 2152 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2153 | @usableFromInline |
| 2154 | @_fixed_layout final internal class PublisherBox<Base> : Combine.PublisherBoxBase<Base.Output, Base.Failure> where Base : Combine.Publisher { |
| 2155 | @usableFromInline |
| 2156 | final internal let base: Base |
| 2157 | @inlinable internal init(_ base: Base) { |
| 2158 | self.base = base |
| 2159 | } |
| 2160 | @objc @inlinable deinit {} |
| 2161 | @inlinable override final internal func receive<S>(subscriber: S) where S : Combine.Subscriber, Base.Failure == S.Failure, Base.Output == S.Input { |
| 2162 | base.receive(subscriber: subscriber) |
| 2163 | } |
| 2164 | } |
| 2165 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2166 | @frozen public struct AnyPublisher<Output, Failure> : Swift.CustomStringConvertible, Swift.CustomPlaygroundDisplayConvertible where Failure : Swift.Error { |
| 2167 | @usableFromInline |
| 2168 | internal let box: Combine.PublisherBoxBase<Output, Failure> |
| 2169 | public var description: Swift.String { |
| 2170 | get |
| 2171 | } |
| 2172 | public var playgroundDescription: Any { |
| 2173 | get |
| 2174 | } |
| 2175 | @inlinable public init<P>(_ publisher: P) where Output == P.Output, Failure == P.Failure, P : Combine.Publisher { |
| 2176 | |
| 2177 | if let erased = publisher as? AnyPublisher<Output, Failure> { |
| 2178 | box = erased.box |
| 1532 | public let g: G |
| 1533 | public let h: H |
| 1534 | public init(_ a: A, _ b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G, _ h: H) |
| 1535 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, H.Failure == S.Failure, H.Output == S.Input |
| 1536 | } |
| 1537 | public struct MergeMany<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1538 | public typealias Output = Upstream.Output |
| 1539 | public typealias Failure = Upstream.Failure |
| 1540 | public let publishers: [Upstream] |
| 1541 | public init(_ upstream: Upstream...) |
| 1542 | public init<S>(_ upstream: S) where Upstream == S.Element, S : Swift::Sequence |
| 1543 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1544 | public func merge(with other: Upstream) -> Combine::Publishers.Combine::MergeMany<Upstream> |
| 1545 | } |
| 1546 | } |
| 1547 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1548 | extension Combine::Publishers.Combine::Merge : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable { |
| 1549 | public static func == (lhs: Combine::Publishers.Combine::Merge<A, B>, rhs: Combine::Publishers.Combine::Merge<A, B>) -> Swift::Bool |
| 1550 | } |
| 1551 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1552 | extension Combine::Publishers.Combine::Merge3 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable { |
| 1553 | public static func == (lhs: Combine::Publishers.Combine::Merge3<A, B, C>, rhs: Combine::Publishers.Combine::Merge3<A, B, C>) -> Swift::Bool |
| 1554 | } |
| 1555 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1556 | extension Combine::Publishers.Combine::Merge4 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable { |
| 1557 | public static func == (lhs: Combine::Publishers.Combine::Merge4<A, B, C, D>, rhs: Combine::Publishers.Combine::Merge4<A, B, C, D>) -> Swift::Bool |
| 1558 | } |
| 1559 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1560 | extension Combine::Publishers.Combine::Merge5 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable, E : Swift::Equatable { |
| 1561 | public static func == (lhs: Combine::Publishers.Combine::Merge5<A, B, C, D, E>, rhs: Combine::Publishers.Combine::Merge5<A, B, C, D, E>) -> Swift::Bool |
| 1562 | } |
| 1563 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1564 | extension Combine::Publishers.Combine::Merge6 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable, E : Swift::Equatable, F : Swift::Equatable { |
| 1565 | public static func == (lhs: Combine::Publishers.Combine::Merge6<A, B, C, D, E, F>, rhs: Combine::Publishers.Combine::Merge6<A, B, C, D, E, F>) -> Swift::Bool |
| 1566 | } |
| 1567 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1568 | extension Combine::Publishers.Combine::Merge7 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable, E : Swift::Equatable, F : Swift::Equatable, G : Swift::Equatable { |
| 1569 | public static func == (lhs: Combine::Publishers.Combine::Merge7<A, B, C, D, E, F, G>, rhs: Combine::Publishers.Combine::Merge7<A, B, C, D, E, F, G>) -> Swift::Bool |
| 1570 | } |
| 1571 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1572 | extension Combine::Publishers.Combine::Merge8 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable, E : Swift::Equatable, F : Swift::Equatable, G : Swift::Equatable, H : Swift::Equatable { |
| 1573 | public static func == (lhs: Combine::Publishers.Combine::Merge8<A, B, C, D, E, F, G, H>, rhs: Combine::Publishers.Combine::Merge8<A, B, C, D, E, F, G, H>) -> Swift::Bool |
| 1574 | } |
| 1575 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1576 | extension Combine::Publishers.Combine::MergeMany : Swift::Equatable where Upstream : Swift::Equatable { |
| 1577 | public static func == (lhs: Combine::Publishers.Combine::MergeMany<Upstream>, rhs: Combine::Publishers.Combine::MergeMany<Upstream>) -> Swift::Bool |
| 1578 | } |
| 1579 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1580 | extension Swift::Result { |
| 1581 | public var publisher: Swift::Result<Success, Failure>.Combine::Publisher { |
| 1582 | get |
| 1583 | } |
| 1584 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1585 | public struct Publisher : Combine::Publisher { |
| 1586 | public typealias Output = Success |
| 1587 | public let result: Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure> |
| 1588 | public init(_ result: Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>) |
| 1589 | public init(_ output: Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) |
| 1590 | public init(_ failure: Failure) |
| 1591 | public func receive<S>(subscriber: S) where Success == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 1592 | } |
| 1593 | } |
| 1594 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1595 | extension Swift::Result.Combine::Publisher : Swift::Equatable where Success : Swift::Equatable, Failure : Swift::Equatable { |
| 1596 | public static func == (lhs: Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher, rhs: Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher) -> Swift::Bool |
| 1597 | } |
| 1598 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1599 | extension Swift::Result.Combine::Publisher where Success : Swift::Equatable { |
| 1600 | public func contains(_ output: Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 1601 | public func removeDuplicates() -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1602 | } |
| 1603 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1604 | extension Swift::Result.Combine::Publisher where Success : Swift::Comparable { |
| 1605 | public func min() -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1606 | public func max() -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1607 | } |
| 1608 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1609 | extension Swift::Result.Combine::Publisher { |
| 1610 | public func allSatisfy(_ predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 1611 | public func tryAllSatisfy(_ predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 1612 | public func collect() -> Swift::Result<[Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output], Failure>.Combine::Publisher |
| 1613 | public func min(by areInIncreasingOrder: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1614 | public func tryMin(by areInIncreasingOrder: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, any Swift::Error>.Combine::Publisher |
| 1615 | public func max(by areInIncreasingOrder: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1616 | public func tryMax(by areInIncreasingOrder: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, any Swift::Error>.Combine::Publisher |
| 1617 | public func contains(where predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 1618 | public func tryContains(where predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 1619 | public func count() -> Swift::Result<Swift::Int, Failure>.Combine::Publisher |
| 1620 | public func first() -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1621 | public func last() -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1622 | public func ignoreOutput() -> Combine::Empty<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure> |
| 1623 | public func map<T>(_ transform: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> T) -> Swift::Result<T, Failure>.Combine::Publisher |
| 1624 | public func tryMap<T>(_ transform: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 1625 | public func mapError<E>(_ transform: (Failure) -> E) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, E>.Combine::Publisher where E : Swift::Error |
| 1626 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> T) -> Swift::Result<T, Failure>.Combine::Publisher |
| 1627 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 1628 | public func removeDuplicates(by predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1629 | public func tryRemoveDuplicates(by predicate: (Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> Swift::Bool) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, any Swift::Error>.Combine::Publisher |
| 1630 | public func replaceError(with output: Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Swift::Never>.Combine::Publisher |
| 1631 | public func replaceEmpty(with output: Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1632 | public func retry(_ times: Swift::Int) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, Failure>.Combine::Publisher |
| 1633 | public func scan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) -> T) -> Swift::Result<T, Failure>.Combine::Publisher |
| 1634 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: (T, Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 1635 | } |
| 1636 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1637 | extension Swift::Result.Combine::Publisher where Failure == Swift::Never { |
| 1638 | public func setFailureType<E>(to failureType: E.Type) -> Swift::Result<Swift::Result<Success, Failure>.Combine::Publisher.Combine::Output, E>.Combine::Publisher where E : Swift::Error |
| 1639 | } |
| 1640 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1641 | extension Combine::Publisher { |
| 1642 | public func scan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) -> T) -> Combine::Publishers.Combine::Scan<Self, T> |
| 1643 | public func tryScan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Self.Output) throws -> T) -> Combine::Publishers.Combine::TryScan<Self, T> |
| 1644 | } |
| 1645 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1646 | extension Combine::Publishers { |
| 1647 | public struct Scan<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1648 | public typealias Failure = Upstream.Failure |
| 1649 | public let upstream: Upstream |
| 1650 | public let initialResult: Output |
| 1651 | public let nextPartialResult: (Output, Upstream.Output) -> Output |
| 1652 | public init(upstream: Upstream, initialResult: Output, nextPartialResult: @escaping (Output, Upstream.Output) -> Output) |
| 1653 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, Upstream.Failure == S.Failure |
| 1654 | } |
| 1655 | public struct TryScan<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1656 | public typealias Failure = Swift::Error |
| 1657 | public let upstream: Upstream |
| 1658 | public let initialResult: Output |
| 1659 | public let nextPartialResult: (Output, Upstream.Output) throws -> Output |
| 1660 | public init(upstream: Upstream, initialResult: Output, nextPartialResult: @escaping (Output, Upstream.Output) throws -> Output) |
| 1661 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == any Swift::Error |
| 1662 | } |
| 1663 | } |
| 1664 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1665 | public struct ImmediateScheduler : Combine::Scheduler { |
| 1666 | public struct SchedulerTimeType : Swift::Strideable { |
| 1667 | public func distance(to other: Combine::ImmediateScheduler.Combine::SchedulerTimeType) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1668 | public func advanced(by n: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType |
| 1669 | public struct Stride : Swift::ExpressibleByFloatLiteral, Swift::Comparable, Swift::SignedNumeric, Swift::Codable, Combine::SchedulerTimeIntervalConvertible { |
| 1670 | public typealias FloatLiteralType = Swift::Double |
| 1671 | public typealias IntegerLiteralType = Swift::Int |
| 1672 | public typealias Magnitude = Swift::Int |
| 1673 | public var magnitude: Swift::Int |
| 1674 | public init(_ value: Swift::Int) |
| 1675 | public init(integerLiteral value: Swift::Int) |
| 1676 | public init(floatLiteral value: Swift::Double) |
| 1677 | public init?<T>(exactly source: T) where T : Swift::BinaryInteger |
| 1678 | public static func < (lhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Swift::Bool |
| 1679 | public static func * (lhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1680 | public static func + (lhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1681 | public static func - (lhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1682 | public static func -= (lhs: inout Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) |
| 1683 | public static func *= (lhs: inout Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) |
| 1684 | public static func += (lhs: inout Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, rhs: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) |
| 1685 | public static func seconds(_ s: Swift::Int) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1686 | public static func seconds(_ s: Swift::Double) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1687 | public static func milliseconds(_ ms: Swift::Int) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1688 | public static func microseconds(_ us: Swift::Int) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1689 | public static func nanoseconds(_ ns: Swift::Int) -> Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride |
| 1690 | public static func == (a: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, b: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride) -> Swift::Bool |
| 1691 | public func encode(to encoder: any Swift::Encoder) throws |
| 1692 | public init(from decoder: any Swift::Decoder) throws |
| 1693 | } |
| 1694 | } |
| 1695 | public typealias SchedulerOptions = Swift::Never |
| 1696 | public static let shared: Combine::ImmediateScheduler |
| 1697 | public func schedule(options: Combine::ImmediateScheduler.Combine::SchedulerOptions?, _ action: @escaping () -> Swift::Void) |
| 1698 | public var now: Combine::ImmediateScheduler.Combine::SchedulerTimeType { |
| 1699 | get |
| 1700 | } |
| 1701 | public var minimumTolerance: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride { |
| 1702 | get |
| 1703 | } |
| 1704 | public func schedule(after date: Combine::ImmediateScheduler.Combine::SchedulerTimeType, tolerance: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, options: Combine::ImmediateScheduler.Combine::SchedulerOptions?, _ action: @escaping () -> Swift::Void) |
| 1705 | @discardableResult |
| 1706 | public func schedule(after date: Combine::ImmediateScheduler.Combine::SchedulerTimeType, interval: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, tolerance: Combine::ImmediateScheduler.Combine::SchedulerTimeType.Combine::Stride, options: Combine::ImmediateScheduler.Combine::SchedulerOptions?, _ action: @escaping () -> Swift::Void) -> any Combine::Cancellable |
| 1707 | } |
| 1708 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1709 | extension Combine::Publisher { |
| 1710 | public func count() -> Combine::Publishers.Combine::Count<Self> |
| 1711 | } |
| 1712 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1713 | extension Combine::Publishers { |
| 1714 | public struct Count<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1715 | public typealias Output = Swift::Int |
| 1716 | public typealias Failure = Upstream.Failure |
| 1717 | public let upstream: Upstream |
| 1718 | public init(upstream: Upstream) |
| 1719 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Swift::Int |
| 1720 | } |
| 1721 | } |
| 1722 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1723 | extension Combine::Publishers.Combine::Count : Swift::Equatable where Upstream : Swift::Equatable { |
| 1724 | public static func == (lhs: Combine::Publishers.Combine::Count<Upstream>, rhs: Combine::Publishers.Combine::Count<Upstream>) -> Swift::Bool |
| 1725 | } |
| 1726 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1727 | extension Combine::Publisher { |
| 1728 | public func last(where predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::LastWhere<Self> |
| 1729 | public func tryLast(where predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryLastWhere<Self> |
| 1730 | } |
| 1731 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1732 | extension Combine::Publishers { |
| 1733 | public struct LastWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1734 | public typealias Output = Upstream.Output |
| 1735 | public typealias Failure = Upstream.Failure |
| 1736 | public let upstream: Upstream |
| 1737 | public let predicate: (Combine::Publishers.Combine::LastWhere<Upstream>.Combine::Output) -> Swift::Bool |
| 1738 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::LastWhere<Upstream>.Output) -> Swift::Bool) |
| 1739 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1740 | } |
| 1741 | public struct TryLastWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1742 | public typealias Output = Upstream.Output |
| 1743 | public typealias Failure = Swift::Error |
| 1744 | public let upstream: Upstream |
| 1745 | public let predicate: (Combine::Publishers.Combine::TryLastWhere<Upstream>.Combine::Output) throws -> Swift::Bool |
| 1746 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::TryLastWhere<Upstream>.Output) throws -> Swift::Bool) |
| 1747 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 1748 | } |
| 1749 | } |
| 1750 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1751 | extension Combine::Publisher { |
| 1752 | public func ignoreOutput() -> Combine::Publishers.Combine::IgnoreOutput<Self> |
| 1753 | } |
| 1754 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1755 | extension Combine::Publishers { |
| 1756 | public struct IgnoreOutput<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1757 | public typealias Output = Swift::Never |
| 1758 | public typealias Failure = Upstream.Failure |
| 1759 | public let upstream: Upstream |
| 1760 | public init(upstream: Upstream) |
| 1761 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, S.Input == Swift::Never |
| 1762 | } |
| 1763 | } |
| 1764 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1765 | extension Combine::Publishers.Combine::IgnoreOutput : Swift::Equatable where Upstream : Swift::Equatable { |
| 1766 | public static func == (lhs: Combine::Publishers.Combine::IgnoreOutput<Upstream>, rhs: Combine::Publishers.Combine::IgnoreOutput<Upstream>) -> Swift::Bool |
| 1767 | } |
| 1768 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1769 | final public class CurrentValueSubject<Output, Failure> : Combine::Subject where Failure : Swift::Error { |
| 1770 | final public var value: Output { |
| 1771 | get |
| 1772 | set |
| 1773 | } |
| 1774 | public init(_ value: Output) |
| 1775 | @objc deinit |
| 1776 | final public func send(subscription: any Combine::Subscription) |
| 1777 | final public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 1778 | final public func send(_ input: Output) |
| 1779 | final public func send(completion: Combine::Subscribers.Combine::Completion<Failure>) |
| 1780 | } |
| 1781 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1782 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 1783 | public func assign<Root>(to keyPath: Swift::ReferenceWritableKeyPath<Root, Self.Output>, on object: Root) -> Combine::AnyCancellable |
| 1784 | } |
| 1785 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1786 | extension Combine::Subscribers { |
| 1787 | final public class Assign<Root, Input> : Combine::Subscriber, Combine::Cancellable, Swift::CustomStringConvertible, Swift::CustomReflectable, Swift::CustomPlaygroundDisplayConvertible { |
| 1788 | public typealias Failure = Swift::Never |
| 1789 | final public var object: Root? { |
| 1790 | get |
| 1791 | } |
| 1792 | final public let keyPath: Swift::ReferenceWritableKeyPath<Root, Input> |
| 1793 | final public var description: Swift::String { |
| 1794 | get |
| 1795 | } |
| 1796 | final public var customMirror: Swift::Mirror { |
| 1797 | get |
| 1798 | } |
| 1799 | final public var playgroundDescription: Any { |
| 1800 | get |
| 1801 | } |
| 1802 | public init(object: Root, keyPath: Swift::ReferenceWritableKeyPath<Root, Input>) |
| 1803 | @objc deinit |
| 1804 | final public func receive(subscription: any Combine::Subscription) |
| 1805 | final public func receive(_ value: Input) -> Combine::Subscribers.Combine::Demand |
| 1806 | final public func receive(completion: Combine::Subscribers.Combine::Completion<Swift::Never>) |
| 1807 | final public func cancel() |
| 1808 | } |
| 1809 | } |
| 1810 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1811 | public protocol SchedulerTimeIntervalConvertible { |
| 1812 | static func seconds(_ s: Swift::Int) -> Self |
| 1813 | static func seconds(_ s: Swift::Double) -> Self |
| 1814 | static func milliseconds(_ ms: Swift::Int) -> Self |
| 1815 | static func microseconds(_ us: Swift::Int) -> Self |
| 1816 | static func nanoseconds(_ ns: Swift::Int) -> Self |
| 1817 | } |
| 1818 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1819 | public protocol Scheduler<SchedulerTimeType> { |
| 1820 | associatedtype SchedulerTimeType : Swift::Strideable where Self.SchedulerTimeType.Stride : Combine::SchedulerTimeIntervalConvertible |
| 1821 | associatedtype SchedulerOptions |
| 1822 | var now: Self.SchedulerTimeType { get } |
| 1823 | var minimumTolerance: Self.SchedulerTimeType.Stride { get } |
| 1824 | func schedule(options: Self.SchedulerOptions?, _ action: @escaping () -> Swift::Void) |
| 1825 | func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift::Void) |
| 1826 | func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, options: Self.SchedulerOptions?, _ action: @escaping () -> Swift::Void) -> any Combine::Cancellable |
| 1827 | } |
| 1828 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1829 | extension Combine::Scheduler { |
| 1830 | public func schedule(after date: Self.SchedulerTimeType, _ action: @escaping () -> Swift::Void) |
| 1831 | public func schedule(_ action: @escaping () -> Swift::Void) |
| 1832 | public func schedule(after date: Self.SchedulerTimeType, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift::Void) |
| 1833 | public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, tolerance: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift::Void) -> any Combine::Cancellable |
| 1834 | public func schedule(after date: Self.SchedulerTimeType, interval: Self.SchedulerTimeType.Stride, _ action: @escaping () -> Swift::Void) -> any Combine::Cancellable |
| 1835 | } |
| 1836 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1837 | extension Combine::Publisher where Self.Failure == Self.Output.Failure, Self.Output : Combine::Publisher { |
| 1838 | public func switchToLatest() -> Combine::Publishers.Combine::SwitchToLatest<Self.Output, Self> |
| 1839 | } |
| 1840 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1841 | extension Combine::Publisher where Self.Failure == Swift::Never, Self.Output : Combine::Publisher { |
| 1842 | public func switchToLatest() -> Combine::Publishers.Combine::SwitchToLatest<Self.Output, Combine::Publishers.Combine::SetFailureType<Self, Self.Output.Failure>> |
| 1843 | } |
| 1844 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1845 | extension Combine::Publisher where Self.Failure == Swift::Never, Self.Output : Combine::Publisher, Self.Output.Failure == Swift::Never { |
| 1846 | public func switchToLatest() -> Combine::Publishers.Combine::SwitchToLatest<Self.Output, Self> |
| 1847 | } |
| 1848 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 1849 | extension Combine::Publisher where Self.Output : Combine::Publisher, Self.Output.Failure == Swift::Never { |
| 1850 | public func switchToLatest() -> Combine::Publishers.Combine::SwitchToLatest<Combine::Publishers.Combine::SetFailureType<Self.Output, Self.Failure>, Combine::Publishers.Combine::Map<Self, Combine::Publishers.Combine::SetFailureType<Self.Output, Self.Failure>>> |
| 1851 | } |
| 1852 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1853 | extension Combine::Publishers { |
| 1854 | public struct SwitchToLatest<P, Upstream> : Combine::Publisher where P : Combine::Publisher, P == Upstream.Output, Upstream : Combine::Publisher, P.Failure == Upstream.Failure { |
| 1855 | public typealias Output = P.Output |
| 1856 | public typealias Failure = P.Failure |
| 1857 | public let upstream: Upstream |
| 1858 | public init(upstream: Upstream) |
| 1859 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, P.Output == S.Input, Upstream.Failure == S.Failure |
| 1860 | } |
| 1861 | } |
| 1862 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1863 | extension Combine::Publisher { |
| 1864 | public func retry(_ retries: Swift::Int) -> Combine::Publishers.Combine::Retry<Self> |
| 1865 | } |
| 1866 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1867 | extension Combine::Publishers { |
| 1868 | public struct Retry<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1869 | public typealias Output = Upstream.Output |
| 1870 | public typealias Failure = Upstream.Failure |
| 1871 | public let upstream: Upstream |
| 1872 | public let retries: Swift::Int? |
| 1873 | public init(upstream: Upstream, retries: Swift::Int?) |
| 1874 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1875 | } |
| 1876 | } |
| 1877 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1878 | extension Combine::Publishers.Combine::Retry : Swift::Equatable where Upstream : Swift::Equatable { |
| 1879 | public static func == (lhs: Combine::Publishers.Combine::Retry<Upstream>, rhs: Combine::Publishers.Combine::Retry<Upstream>) -> Swift::Bool |
| 1880 | } |
| 1881 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1882 | extension Combine::Publisher { |
| 1883 | public func mapError<E>(_ transform: @escaping (Self.Failure) -> E) -> Combine::Publishers.Combine::MapError<Self, E> where E : Swift::Error |
| 1884 | } |
| 1885 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1886 | extension Combine::Publishers { |
| 1887 | public struct MapError<Upstream, Failure> : Combine::Publisher where Upstream : Combine::Publisher, Failure : Swift::Error { |
| 1888 | public typealias Output = Upstream.Output |
| 1889 | public let upstream: Upstream |
| 1890 | public let transform: (Upstream.Failure) -> Failure |
| 1891 | public init(upstream: Upstream, transform: @escaping (Upstream.Failure) -> Failure) |
| 1892 | public init(upstream: Upstream, _ map: @escaping (Upstream.Failure) -> Failure) |
| 1893 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine::Subscriber, Upstream.Output == S.Input |
| 1894 | } |
| 1895 | } |
| 1896 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1897 | extension Combine::Publisher { |
| 1898 | public func throttle<S>(for interval: S.SchedulerTimeType.Stride, scheduler: S, latest: Swift::Bool) -> Combine::Publishers.Combine::Throttle<Self, S> where S : Combine::Scheduler |
| 1899 | } |
| 1900 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1901 | extension Combine::Publishers { |
| 1902 | public struct Throttle<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 1903 | public typealias Output = Upstream.Output |
| 1904 | public typealias Failure = Upstream.Failure |
| 1905 | public let upstream: Upstream |
| 1906 | public let interval: Context.SchedulerTimeType.Stride |
| 1907 | public let scheduler: Context |
| 1908 | public let latest: Swift::Bool |
| 1909 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, scheduler: Context, latest: Swift::Bool) |
| 1910 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1911 | } |
| 1912 | } |
| 1913 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1914 | extension Combine::Publisher { |
| 1915 | public func share() -> Combine::Publishers.Combine::Share<Self> |
| 1916 | } |
| 1917 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1918 | extension Combine::Publishers { |
| 1919 | final public class Share<Upstream> : Combine::Publisher, Swift::Equatable where Upstream : Combine::Publisher { |
| 1920 | public typealias Output = Upstream.Output |
| 1921 | public typealias Failure = Upstream.Failure |
| 1922 | final public let upstream: Upstream |
| 1923 | public init(upstream: Upstream) |
| 1924 | final public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1925 | public static func == (lhs: Combine::Publishers.Combine::Share<Upstream>, rhs: Combine::Publishers.Combine::Share<Upstream>) -> Swift::Bool |
| 1926 | @objc deinit |
| 1927 | } |
| 1928 | } |
| 1929 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1930 | extension Combine::Publisher where Self.Output : Swift::Comparable { |
| 1931 | public func min() -> Combine::Publishers.Combine::Comparison<Self> |
| 1932 | public func max() -> Combine::Publishers.Combine::Comparison<Self> |
| 1933 | } |
| 1934 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1935 | extension Combine::Publisher { |
| 1936 | public func min(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::Comparison<Self> |
| 1937 | public func tryMin(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryComparison<Self> |
| 1938 | public func max(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::Comparison<Self> |
| 1939 | public func tryMax(by areInIncreasingOrder: @escaping (Self.Output, Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryComparison<Self> |
| 1940 | } |
| 1941 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1942 | extension Combine::Publishers { |
| 1943 | public struct Comparison<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1944 | public typealias Output = Upstream.Output |
| 1945 | public typealias Failure = Upstream.Failure |
| 1946 | public let upstream: Upstream |
| 1947 | public let areInIncreasingOrder: (Upstream.Output, Upstream.Output) -> Swift::Bool |
| 1948 | public init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) -> Swift::Bool) |
| 1949 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1950 | } |
| 1951 | public struct TryComparison<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1952 | public typealias Output = Upstream.Output |
| 1953 | public typealias Failure = Swift::Error |
| 1954 | public let upstream: Upstream |
| 1955 | public let areInIncreasingOrder: (Upstream.Output, Upstream.Output) throws -> Swift::Bool |
| 1956 | public init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) throws -> Swift::Bool) |
| 1957 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 1958 | } |
| 1959 | } |
| 1960 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1961 | extension Combine::Publisher { |
| 1962 | public func replaceNil<T>(with output: T) -> Combine::Publishers.Combine::Map<Self, T> where Self.Output == T? |
| 1963 | } |
| 1964 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1965 | extension Combine::Publisher { |
| 1966 | public func replaceError(with output: Self.Output) -> Combine::Publishers.Combine::ReplaceError<Self> |
| 1967 | public func replaceEmpty(with output: Self.Output) -> Combine::Publishers.Combine::ReplaceEmpty<Self> |
| 1968 | } |
| 1969 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1970 | extension Combine::Publishers { |
| 1971 | public struct ReplaceEmpty<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1972 | public typealias Output = Upstream.Output |
| 1973 | public typealias Failure = Upstream.Failure |
| 1974 | public let output: Combine::Publishers.Combine::ReplaceEmpty<Upstream>.Combine::Output |
| 1975 | public let upstream: Upstream |
| 1976 | public init(upstream: Upstream, output: Combine::Publishers.Combine::ReplaceEmpty<Upstream>.Output) |
| 1977 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 1978 | } |
| 1979 | public struct ReplaceError<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 1980 | public typealias Output = Upstream.Output |
| 1981 | public typealias Failure = Swift::Never |
| 1982 | public let output: Combine::Publishers.Combine::ReplaceError<Upstream>.Combine::Output |
| 1983 | public let upstream: Upstream |
| 1984 | public init(upstream: Upstream, output: Combine::Publishers.Combine::ReplaceError<Upstream>.Output) |
| 1985 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == Swift::Never |
| 1986 | } |
| 1987 | } |
| 1988 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1989 | extension Combine::Publishers.Combine::ReplaceEmpty : Swift::Equatable where Upstream : Swift::Equatable, Upstream.Output : Swift::Equatable { |
| 1990 | public static func == (lhs: Combine::Publishers.Combine::ReplaceEmpty<Upstream>, rhs: Combine::Publishers.Combine::ReplaceEmpty<Upstream>) -> Swift::Bool |
| 1991 | } |
| 1992 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1993 | extension Combine::Publishers.Combine::ReplaceError : Swift::Equatable where Upstream : Swift::Equatable, Upstream.Output : Swift::Equatable { |
| 1994 | public static func == (lhs: Combine::Publishers.Combine::ReplaceError<Upstream>, rhs: Combine::Publishers.Combine::ReplaceError<Upstream>) -> Swift::Bool |
| 1995 | } |
| 1996 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 1997 | extension Combine::Publisher { |
| 1998 | public func assertNoFailure(_ prefix: Swift::String = "", file: Swift::StaticString = #file, line: Swift::UInt = #line) -> Combine::Publishers.Combine::AssertNoFailure<Self> |
| 1999 | } |
| 2000 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2001 | extension Combine::Publishers { |
| 2002 | public struct AssertNoFailure<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2003 | public typealias Output = Upstream.Output |
| 2004 | public typealias Failure = Swift::Never |
| 2005 | public let upstream: Upstream |
| 2006 | public let prefix: Swift::String |
| 2007 | public let file: Swift::StaticString |
| 2008 | public let line: Swift::UInt |
| 2009 | public init(upstream: Upstream, prefix: Swift::String, file: Swift::StaticString, line: Swift::UInt) |
| 2010 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == Swift::Never |
| 2011 | } |
| 2012 | } |
| 2013 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2014 | extension Combine::Publisher { |
| 2015 | public func drop<P>(untilOutputFrom publisher: P) -> Combine::Publishers.Combine::DropUntilOutput<Self, P> where P : Combine::Publisher, Self.Failure == P.Failure |
| 2016 | } |
| 2017 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2018 | extension Combine::Publishers { |
| 2019 | public struct DropUntilOutput<Upstream, Other> : Combine::Publisher where Upstream : Combine::Publisher, Other : Combine::Publisher, Upstream.Failure == Other.Failure { |
| 2020 | public typealias Output = Upstream.Output |
| 2021 | public typealias Failure = Upstream.Failure |
| 2022 | public let upstream: Upstream |
| 2023 | public let other: Other |
| 2024 | public init(upstream: Upstream, other: Other) |
| 2025 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, Other.Failure == S.Failure |
| 2026 | } |
| 2027 | } |
| 2028 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2029 | extension Combine::Publishers.Combine::DropUntilOutput : Swift::Equatable where Upstream : Swift::Equatable, Other : Swift::Equatable { |
| 2030 | public static func == (lhs: Combine::Publishers.Combine::DropUntilOutput<Upstream, Other>, rhs: Combine::Publishers.Combine::DropUntilOutput<Upstream, Other>) -> Swift::Bool |
| 2031 | } |
| 2032 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2033 | extension Combine::Publisher { |
| 2034 | public func handleEvents(receiveSubscription: ((any Combine::Subscription) -> Swift::Void)? = nil, receiveOutput: ((Self.Output) -> Swift::Void)? = nil, receiveCompletion: ((Combine::Subscribers.Combine::Completion<Self.Failure>) -> Swift::Void)? = nil, receiveCancel: (() -> Swift::Void)? = nil, receiveRequest: ((Combine::Subscribers.Combine::Demand) -> Swift::Void)? = nil) -> Combine::Publishers.Combine::HandleEvents<Self> |
| 2035 | } |
| 2036 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2037 | extension Combine::Publishers { |
| 2038 | public struct HandleEvents<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2039 | public typealias Output = Upstream.Output |
| 2040 | public typealias Failure = Upstream.Failure |
| 2041 | public let upstream: Upstream |
| 2042 | public var receiveSubscription: ((any Combine::Subscription) -> Swift::Void)? |
| 2043 | public var receiveOutput: ((Combine::Publishers.Combine::HandleEvents<Upstream>.Combine::Output) -> Swift::Void)? |
| 2044 | public var receiveCompletion: ((Combine::Subscribers.Combine::Completion<Combine::Publishers.Combine::HandleEvents<Upstream>.Combine::Failure>) -> Swift::Void)? |
| 2045 | public var receiveCancel: (() -> Swift::Void)? |
| 2046 | public var receiveRequest: ((Combine::Subscribers.Combine::Demand) -> Swift::Void)? |
| 2047 | public init(upstream: Upstream, receiveSubscription: ((any Combine::Subscription) -> Swift::Void)? = nil, receiveOutput: ((Combine::Publishers.Combine::HandleEvents<Upstream>.Output) -> Swift::Void)? = nil, receiveCompletion: ((Combine::Subscribers.Combine::Completion<Combine::Publishers.Combine::HandleEvents<Upstream>.Failure>) -> Swift::Void)? = nil, receiveCancel: (() -> Swift::Void)? = nil, receiveRequest: ((Combine::Subscribers.Combine::Demand) -> Swift::Void)?) |
| 2048 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2049 | } |
| 2050 | } |
| 2051 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2052 | extension Combine::Publisher { |
| 2053 | public func prepend(_ elements: Self.Output...) -> Combine::Publishers.Combine::Concatenate<Combine::Publishers.Combine::Sequence<[Self.Output], Self.Failure>, Self> |
| 2054 | public func prepend<S>(_ elements: S) -> Combine::Publishers.Combine::Concatenate<Combine::Publishers.Combine::Sequence<S, Self.Failure>, Self> where S : Swift::Sequence, Self.Output == S.Element |
| 2055 | public func prepend<P>(_ publisher: P) -> Combine::Publishers.Combine::Concatenate<P, Self> where P : Combine::Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 2056 | public func append(_ elements: Self.Output...) -> Combine::Publishers.Combine::Concatenate<Self, Combine::Publishers.Combine::Sequence<[Self.Output], Self.Failure>> |
| 2057 | public func append<S>(_ elements: S) -> Combine::Publishers.Combine::Concatenate<Self, Combine::Publishers.Combine::Sequence<S, Self.Failure>> where S : Swift::Sequence, Self.Output == S.Element |
| 2058 | public func append<P>(_ publisher: P) -> Combine::Publishers.Combine::Concatenate<Self, P> where P : Combine::Publisher, Self.Failure == P.Failure, Self.Output == P.Output |
| 2059 | } |
| 2060 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2061 | extension Combine::Publishers { |
| 2062 | public struct Concatenate<Prefix, Suffix> : Combine::Publisher where Prefix : Combine::Publisher, Suffix : Combine::Publisher, Prefix.Failure == Suffix.Failure, Prefix.Output == Suffix.Output { |
| 2063 | public typealias Output = Suffix.Output |
| 2064 | public typealias Failure = Suffix.Failure |
| 2065 | public let prefix: Prefix |
| 2066 | public let suffix: Suffix |
| 2067 | public init(prefix: Prefix, suffix: Suffix) |
| 2068 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Suffix.Failure == S.Failure, Suffix.Output == S.Input |
| 2069 | } |
| 2070 | } |
| 2071 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2072 | extension Combine::Publishers.Combine::Concatenate : Swift::Equatable where Prefix : Swift::Equatable, Suffix : Swift::Equatable { |
| 2073 | public static func == (lhs: Combine::Publishers.Combine::Concatenate<Prefix, Suffix>, rhs: Combine::Publishers.Combine::Concatenate<Prefix, Suffix>) -> Swift::Bool |
| 2074 | } |
| 2075 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2076 | public struct CombineIdentifier : Swift::Hashable, Swift::CustomStringConvertible { |
| 2077 | public init() |
| 2078 | public init(_ obj: Swift::AnyObject) |
| 2079 | public var description: Swift::String { |
| 2080 | get |
| 2081 | } |
| 2082 | public static func == (a: Combine::CombineIdentifier, b: Combine::CombineIdentifier) -> Swift::Bool |
| 2083 | public func hash(into hasher: inout Swift::Hasher) |
| 2084 | public var hashValue: Swift::Int { |
| 2085 | get |
| 2086 | } |
| 2087 | } |
| 2088 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2089 | public protocol CustomCombineIdentifierConvertible { |
| 2090 | var combineIdentifier: Combine::CombineIdentifier { get } |
| 2091 | } |
| 2092 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2093 | extension Combine::CustomCombineIdentifierConvertible where Self : AnyObject { |
| 2094 | public var combineIdentifier: Combine::CombineIdentifier { |
| 2095 | get |
| 2096 | } |
| 2097 | } |
| 2098 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2099 | extension Combine::Publisher { |
| 2100 | public func debounce<S>(for dueTime: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::Debounce<Self, S> where S : Combine::Scheduler |
| 2101 | } |
| 2102 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2103 | extension Combine::Publishers { |
| 2104 | public struct Debounce<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 2105 | public typealias Output = Upstream.Output |
| 2106 | public typealias Failure = Upstream.Failure |
| 2107 | public let upstream: Upstream |
| 2108 | public let dueTime: Context.SchedulerTimeType.Stride |
| 2109 | public let scheduler: Context |
| 2110 | public let options: Context.SchedulerOptions? |
| 2111 | public init(upstream: Upstream, dueTime: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions?) |
| 2112 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2113 | } |
| 2114 | } |
| 2115 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2116 | public struct Fail<Output, Failure> : Combine::Publisher where Failure : Swift::Error { |
| 2117 | public init(error: Failure) |
| 2118 | public init(outputType: Output.Type, failure: Failure) |
| 2119 | public let error: Failure |
| 2120 | public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 2121 | } |
| 2122 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2123 | extension Combine::Fail : Swift::Equatable where Failure : Swift::Equatable { |
| 2124 | public static func == (lhs: Combine::Fail<Output, Failure>, rhs: Combine::Fail<Output, Failure>) -> Swift::Bool |
| 2125 | } |
| 2126 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2127 | extension Combine::Publisher { |
| 2128 | public func last() -> Combine::Publishers.Combine::Last<Self> |
| 2129 | } |
| 2130 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2131 | extension Combine::Publishers { |
| 2132 | public struct Last<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2133 | public typealias Output = Upstream.Output |
| 2134 | public typealias Failure = Upstream.Failure |
| 2135 | public let upstream: Upstream |
| 2136 | public init(upstream: Upstream) |
| 2137 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2138 | } |
| 2139 | } |
| 2140 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2141 | extension Combine::Publishers.Combine::Last : Swift::Equatable where Upstream : Swift::Equatable { |
| 2142 | public static func == (lhs: Combine::Publishers.Combine::Last<Upstream>, rhs: Combine::Publishers.Combine::Last<Upstream>) -> Swift::Bool |
| 2143 | } |
| 2144 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2145 | @usableFromInline |
| 2146 | @_fixed_layout internal class PublisherBoxBase<Output, Failure> : Combine::Publisher where Failure : Swift::Error { |
| 2147 | @inlinable internal init() {} |
| 2148 | @objc @inlinable deinit {} |
| 2149 | @usableFromInline |
| 2150 | internal func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber |
| 2151 | } |
| 2152 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2153 | @usableFromInline |
| 2154 | @_fixed_layout final internal class PublisherBox<Base> : Combine::PublisherBoxBase<Base.Output, Base.Failure> where Base : Combine::Publisher { |
| 2155 | @usableFromInline |
| 2156 | final internal let base: Base |
| 2157 | @inlinable internal init(_ base: Base) { |
| 2158 | self.base = base |
| 2159 | } |
| 2160 | @objc @inlinable deinit {} |
| 2161 | @inlinable override final internal func receive<S>(subscriber: S) where S : Combine::Subscriber, Base.Failure == S.Failure, Base.Output == S.Input { |
| 2162 | base.receive(subscriber: subscriber) |
| 2163 | } |
| 2164 | } |
| 2165 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2166 | @frozen public struct AnyPublisher<Output, Failure> : Swift::CustomStringConvertible, Swift::CustomPlaygroundDisplayConvertible where Failure : Swift::Error { |
| 2167 | @usableFromInline |
| 2168 | internal let box: Combine::PublisherBoxBase<Output, Failure> |
| 2169 | public var description: Swift::String { |
| 2170 | get |
| 2171 | } |
| 2172 | public var playgroundDescription: Any { |
| 2173 | get |
| 2174 | } |
| 2175 | @inlinable public init<P>(_ publisher: P) where Output == P.Output, Failure == P.Failure, P : Combine::Publisher { |
| 2176 | |
| 2177 | if let erased = publisher as? AnyPublisher<Output, Failure> { |
| 2178 | box = erased.box |
| 2182 | } |
| 2183 | } |
| 2184 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2185 | extension Combine.AnyPublisher : Combine.Publisher { |
| 2186 | @inlinable public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine.Subscriber { |
| 2187 | return box.receive(subscriber: subscriber) |
| 2188 | } |
| 2189 | } |
| 2190 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2191 | extension Combine.Publisher { |
| 2192 | public func map<T>(_ transform: @escaping (Self.Output) -> T) -> Combine.Publishers.Map<Self, T> |
| 2193 | public func tryMap<T>(_ transform: @escaping (Self.Output) throws -> T) -> Combine.Publishers.TryMap<Self, T> |
| 2194 | } |
| 2195 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2196 | extension Combine.Publishers { |
| 2197 | public struct Map<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2198 | public typealias Failure = Upstream.Failure |
| 2199 | public let upstream: Upstream |
| 2200 | public let transform: (Upstream.Output) -> Output |
| 2201 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) -> Output) |
| 2202 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, Upstream.Failure == S.Failure |
| 2203 | } |
| 2204 | public struct TryMap<Upstream, Output> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2205 | public typealias Failure = Swift.Error |
| 2206 | public let upstream: Upstream |
| 2207 | public let transform: (Upstream.Output) throws -> Output |
| 2208 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output) |
| 2209 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine.Subscriber, S.Failure == any Swift.Error |
| 2210 | } |
| 2211 | } |
| 2212 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2213 | extension Combine.Publishers.Map { |
| 2214 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine.Publishers.Map<Upstream, T> |
| 2215 | public func tryMap<T>(_ transform: @escaping (Output) throws -> T) -> Combine.Publishers.TryMap<Upstream, T> |
| 2216 | } |
| 2217 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2218 | extension Combine.Publishers.TryMap { |
| 2219 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine.Publishers.TryMap<Upstream, T> |
| 2220 | public func tryMap<T>(_ transform: @escaping (Output) throws -> T) -> Combine.Publishers.TryMap<Upstream, T> |
| 2221 | } |
| 2222 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2223 | extension Combine.Publisher { |
| 2224 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, customError: (() -> Self.Failure)? = nil) -> Combine.Publishers.Timeout<Self, S> where S : Combine.Scheduler |
| 2225 | } |
| 2226 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2227 | extension Combine.Publishers { |
| 2228 | public struct Timeout<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 2229 | public typealias Output = Upstream.Output |
| 2230 | public typealias Failure = Upstream.Failure |
| 2231 | public let upstream: Upstream |
| 2232 | public let interval: Context.SchedulerTimeType.Stride |
| 2233 | public let scheduler: Context |
| 2234 | public let options: Context.SchedulerOptions? |
| 2235 | public let customError: (() -> Combine.Publishers.Timeout<Upstream, Context>.Failure)? |
| 2236 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions?, customError: (() -> Combine.Publishers.Timeout<Upstream, Context>.Failure)?) |
| 2237 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2238 | } |
| 2239 | } |
| 2240 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2241 | extension Combine.Publisher { |
| 2242 | public func buffer(size: Swift.Int, prefetch: Combine.Publishers.PrefetchStrategy, whenFull: Combine.Publishers.BufferingStrategy<Self.Failure>) -> Combine.Publishers.Buffer<Self> |
| 2243 | } |
| 2244 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2245 | extension Combine.Publishers { |
| 2246 | public enum PrefetchStrategy { |
| 2247 | case keepFull |
| 2248 | case byRequest |
| 2249 | public static func == (a: Combine.Publishers.PrefetchStrategy, b: Combine.Publishers.PrefetchStrategy) -> Swift.Bool |
| 2250 | public func hash(into hasher: inout Swift.Hasher) |
| 2251 | public var hashValue: Swift.Int { |
| 2252 | get |
| 2253 | } |
| 2254 | } |
| 2255 | public enum BufferingStrategy<Failure> where Failure : Swift.Error { |
| 2256 | case dropNewest |
| 2257 | case dropOldest |
| 2258 | case customError(() -> Failure) |
| 2259 | } |
| 2260 | public struct Buffer<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2261 | public typealias Output = Upstream.Output |
| 2262 | public typealias Failure = Upstream.Failure |
| 2263 | public let upstream: Upstream |
| 2264 | public let size: Swift.Int |
| 2265 | public let prefetch: Combine.Publishers.PrefetchStrategy |
| 2266 | public let whenFull: Combine.Publishers.BufferingStrategy<Combine.Publishers.Buffer<Upstream>.Failure> |
| 2267 | public init(upstream: Upstream, size: Swift.Int, prefetch: Combine.Publishers.PrefetchStrategy, whenFull: Combine.Publishers.BufferingStrategy<Combine.Publishers.Buffer<Upstream>.Failure>) |
| 2268 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2269 | } |
| 2270 | } |
| 2271 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2272 | extension Swift.Sequence { |
| 2273 | public var publisher: Combine.Publishers.Sequence<Self, Swift.Never> { |
| 2274 | get |
| 2275 | } |
| 2276 | } |
| 2277 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2278 | extension Combine.Publishers { |
| 2279 | public struct Sequence<Elements, Failure> : Combine.Publisher where Elements : Swift.Sequence, Failure : Swift.Error { |
| 2280 | public typealias Output = Elements.Element |
| 2281 | public let sequence: Elements |
| 2282 | public init(sequence: Elements) |
| 2283 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine.Subscriber, Elements.Element == S.Input |
| 2284 | } |
| 2285 | } |
| 2286 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2287 | extension Combine.Publishers.Sequence where Failure == Swift.Never { |
| 2288 | public func min(by areInIncreasingOrder: (Combine.Publishers.Sequence<Elements, Failure>.Output, Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2289 | public func max(by areInIncreasingOrder: (Combine.Publishers.Sequence<Elements, Failure>.Output, Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2290 | public func first(where predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2291 | } |
| 2292 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2293 | extension Combine.Publishers.Sequence { |
| 2294 | public func allSatisfy(_ predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 2295 | public func tryAllSatisfy(_ predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 2296 | public func collect() -> Swift.Result<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure>.Publisher |
| 2297 | public func compactMap<T>(_ transform: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> T?) -> Combine.Publishers.Sequence<[T], Failure> |
| 2298 | public func contains(where predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 2299 | public func tryContains(where predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) throws -> Swift.Bool) -> Swift.Result<Swift.Bool, any Swift.Error>.Publisher |
| 2300 | public func drop(while predicate: (Elements.Element) -> Swift.Bool) -> Combine.Publishers.Sequence<Swift.DropWhileSequence<Elements>, Failure> |
| 2301 | public func dropFirst(_ count: Swift.Int = 1) -> Combine.Publishers.Sequence<Swift.DropFirstSequence<Elements>, Failure> |
| 2302 | public func filter(_ isIncluded: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Combine.Publishers.Sequence<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure> |
| 2303 | public func ignoreOutput() -> Combine.Empty<Combine.Publishers.Sequence<Elements, Failure>.Output, Failure> |
| 2304 | public func map<T>(_ transform: (Elements.Element) -> T) -> Combine.Publishers.Sequence<[T], Failure> |
| 2305 | public func prefix(_ maxLength: Swift.Int) -> Combine.Publishers.Sequence<Swift.PrefixSequence<Elements>, Failure> |
| 2306 | public func prefix(while predicate: (Elements.Element) -> Swift.Bool) -> Combine.Publishers.Sequence<[Elements.Element], Failure> |
| 2307 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine.Publishers.Sequence<Elements, Failure>.Output) -> T) -> Swift.Result<T, Failure>.Publisher |
| 2308 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine.Publishers.Sequence<Elements, Failure>.Output) throws -> T) -> Swift.Result<T, any Swift.Error>.Publisher |
| 2309 | public func replaceNil<T>(with output: T) -> Combine.Publishers.Sequence<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure> where Elements.Element == T? |
| 2310 | public func scan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine.Publishers.Sequence<Elements, Failure>.Output) -> T) -> Combine.Publishers.Sequence<[T], Failure> |
| 2311 | public func setFailureType<E>(to error: E.Type) -> Combine.Publishers.Sequence<Elements, E> where E : Swift.Error |
| 2312 | } |
| 2313 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2314 | extension Combine.Publishers.Sequence where Elements.Element : Swift.Equatable { |
| 2315 | public func removeDuplicates() -> Combine.Publishers.Sequence<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure> |
| 2316 | public func contains(_ output: Elements.Element) -> Swift.Result<Swift.Bool, Failure>.Publisher |
| 2317 | } |
| 2318 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2319 | extension Combine.Publishers.Sequence where Failure == Swift.Never, Elements.Element : Swift.Comparable { |
| 2320 | public func min() -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2321 | public func max() -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2322 | } |
| 2323 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2324 | extension Combine.Publishers.Sequence where Elements : Swift.Collection, Failure == Swift.Never { |
| 2325 | public func first() -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2326 | public func output(at index: Elements.Index) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2327 | } |
| 2328 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2329 | extension Combine.Publishers.Sequence where Elements : Swift.Collection { |
| 2330 | public func count() -> Swift.Result<Swift.Int, Failure>.Publisher |
| 2331 | public func output(in range: Swift.Range<Elements.Index>) -> Combine.Publishers.Sequence<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure> |
| 2332 | } |
| 2333 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2334 | extension Combine.Publishers.Sequence where Elements : Swift.BidirectionalCollection, Failure == Swift.Never { |
| 2335 | public func last() -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2336 | public func last(where predicate: (Combine.Publishers.Sequence<Elements, Failure>.Output) -> Swift.Bool) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2337 | } |
| 2338 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2339 | extension Combine.Publishers.Sequence where Elements : Swift.RandomAccessCollection, Failure == Swift.Never { |
| 2340 | public func output(at index: Elements.Index) -> Swift.Optional<Combine.Publishers.Sequence<Elements, Failure>.Output>.Publisher |
| 2341 | } |
| 2342 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2343 | extension Combine.Publishers.Sequence where Elements : Swift.RandomAccessCollection { |
| 2344 | public func output(in range: Swift.Range<Elements.Index>) -> Combine.Publishers.Sequence<[Combine.Publishers.Sequence<Elements, Failure>.Output], Failure> |
| 2345 | } |
| 2346 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2347 | extension Combine.Publishers.Sequence where Elements : Swift.RandomAccessCollection, Failure == Swift.Never { |
| 2348 | public func count() -> Combine.Just<Swift.Int> |
| 2349 | } |
| 2350 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2351 | extension Combine.Publishers.Sequence where Elements : Swift.RandomAccessCollection { |
| 2352 | public func count() -> Swift.Result<Swift.Int, Failure>.Publisher |
| 2353 | } |
| 2354 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2355 | extension Combine.Publishers.Sequence where Elements : Swift.RangeReplaceableCollection { |
| 2356 | public func prepend(_ elements: Combine.Publishers.Sequence<Elements, Failure>.Output...) -> Combine.Publishers.Sequence<Elements, Failure> |
| 2357 | public func prepend<S>(_ elements: S) -> Combine.Publishers.Sequence<Elements, Failure> where S : Swift.Sequence, Elements.Element == S.Element |
| 2358 | public func prepend(_ publisher: Combine.Publishers.Sequence<Elements, Failure>) -> Combine.Publishers.Sequence<Elements, Failure> |
| 2359 | public func append(_ elements: Combine.Publishers.Sequence<Elements, Failure>.Output...) -> Combine.Publishers.Sequence<Elements, Failure> |
| 2360 | public func append<S>(_ elements: S) -> Combine.Publishers.Sequence<Elements, Failure> where S : Swift.Sequence, Elements.Element == S.Element |
| 2361 | public func append(_ publisher: Combine.Publishers.Sequence<Elements, Failure>) -> Combine.Publishers.Sequence<Elements, Failure> |
| 2362 | } |
| 2363 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2364 | extension Combine.Publishers.Sequence : Swift.Equatable where Elements : Swift.Equatable { |
| 2365 | public static func == (lhs: Combine.Publishers.Sequence<Elements, Failure>, rhs: Combine.Publishers.Sequence<Elements, Failure>) -> Swift.Bool |
| 2366 | } |
| 2367 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2368 | extension Combine.Publisher { |
| 2369 | public func zip<P>(_ other: P) -> Combine.Publishers.Zip<Self, P> where P : Combine.Publisher, Self.Failure == P.Failure |
| 2370 | public func zip<P, T>(_ other: P, _ transform: @escaping (Self.Output, P.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.Zip<Self, P>, T> where P : Combine.Publisher, Self.Failure == P.Failure |
| 2371 | public func zip<P, Q>(_ publisher1: P, _ publisher2: Q) -> Combine.Publishers.Zip3<Self, P, Q> where P : Combine.Publisher, Q : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 2372 | public func zip<P, Q, T>(_ publisher1: P, _ publisher2: Q, _ transform: @escaping (Self.Output, P.Output, Q.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.Zip3<Self, P, Q>, T> where P : Combine.Publisher, Q : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 2373 | public func zip<P, Q, R>(_ publisher1: P, _ publisher2: Q, _ publisher3: R) -> Combine.Publishers.Zip4<Self, P, Q, R> where P : Combine.Publisher, Q : Combine.Publisher, R : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 2374 | public func zip<P, Q, R, T>(_ publisher1: P, _ publisher2: Q, _ publisher3: R, _ transform: @escaping (Self.Output, P.Output, Q.Output, R.Output) -> T) -> Combine.Publishers.Map<Combine.Publishers.Zip4<Self, P, Q, R>, T> where P : Combine.Publisher, Q : Combine.Publisher, R : Combine.Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 2375 | } |
| 2376 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2377 | extension Combine.Publishers { |
| 2378 | public struct Zip<A, B> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, A.Failure == B.Failure { |
| 2379 | public typealias Output = (A.Output, B.Output) |
| 2380 | public typealias Failure = A.Failure |
| 2381 | public let a: A |
| 2382 | public let b: B |
| 2383 | public init(_ a: A, _ b: B) |
| 2384 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, B.Failure == S.Failure, S.Input == (A.Output, B.Output) |
| 2385 | } |
| 2386 | public struct Zip3<A, B, C> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, A.Failure == B.Failure, B.Failure == C.Failure { |
| 2387 | public typealias Output = (A.Output, B.Output, C.Output) |
| 2388 | public typealias Failure = A.Failure |
| 2389 | public let a: A |
| 2390 | public let b: B |
| 2391 | public let c: C |
| 2392 | public init(_ a: A, _ b: B, _ c: C) |
| 2393 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, C.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output) |
| 2394 | } |
| 2395 | public struct Zip4<A, B, C, D> : Combine.Publisher where A : Combine.Publisher, B : Combine.Publisher, C : Combine.Publisher, D : Combine.Publisher, A.Failure == B.Failure, B.Failure == C.Failure, C.Failure == D.Failure { |
| 2396 | public typealias Output = (A.Output, B.Output, C.Output, D.Output) |
| 2397 | public typealias Failure = A.Failure |
| 2398 | public let a: A |
| 2399 | public let b: B |
| 2400 | public let c: C |
| 2401 | public let d: D |
| 2402 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 2403 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, D.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output, D.Output) |
| 2404 | } |
| 2405 | } |
| 2406 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2407 | extension Combine.Publishers.Zip : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable { |
| 2408 | public static func == (lhs: Combine.Publishers.Zip<A, B>, rhs: Combine.Publishers.Zip<A, B>) -> Swift.Bool |
| 2409 | } |
| 2410 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2411 | extension Combine.Publishers.Zip3 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable { |
| 2412 | public static func == (lhs: Combine.Publishers.Zip3<A, B, C>, rhs: Combine.Publishers.Zip3<A, B, C>) -> Swift.Bool |
| 2413 | } |
| 2414 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2415 | extension Combine.Publishers.Zip4 : Swift.Equatable where A : Swift.Equatable, B : Swift.Equatable, C : Swift.Equatable, D : Swift.Equatable { |
| 2416 | public static func == (lhs: Combine.Publishers.Zip4<A, B, C, D>, rhs: Combine.Publishers.Zip4<A, B, C, D>) -> Swift.Bool |
| 2417 | } |
| 2418 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2419 | extension Combine.Publisher { |
| 2420 | public func output(at index: Swift.Int) -> Combine.Publishers.Output<Self> |
| 2421 | public func output<R>(in range: R) -> Combine.Publishers.Output<Self> where R : Swift.RangeExpression, R.Bound == Swift.Int |
| 2422 | } |
| 2423 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2424 | extension Combine.Publishers { |
| 2425 | public struct Output<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2426 | public typealias Output = Upstream.Output |
| 2427 | public typealias Failure = Upstream.Failure |
| 2428 | public let upstream: Upstream |
| 2429 | public let range: Swift.CountableRange<Swift.Int> |
| 2430 | public init(upstream: Upstream, range: Swift.CountableRange<Swift.Int>) |
| 2431 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2432 | } |
| 2433 | } |
| 2434 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2435 | extension Combine.Publishers.Output : Swift.Equatable where Upstream : Swift.Equatable { |
| 2436 | public static func == (lhs: Combine.Publishers.Output<Upstream>, rhs: Combine.Publishers.Output<Upstream>) -> Swift.Bool |
| 2437 | } |
| 2438 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2439 | extension Combine.Publisher { |
| 2440 | public func `catch`<P>(_ handler: @escaping (Self.Failure) -> P) -> Combine.Publishers.Catch<Self, P> where P : Combine.Publisher, Self.Output == P.Output |
| 2441 | public func tryCatch<P>(_ handler: @escaping (Self.Failure) throws -> P) -> Combine.Publishers.TryCatch<Self, P> where P : Combine.Publisher, Self.Output == P.Output |
| 2442 | } |
| 2443 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2444 | extension Combine.Publishers { |
| 2445 | public struct Catch<Upstream, NewPublisher> : Combine.Publisher where Upstream : Combine.Publisher, NewPublisher : Combine.Publisher, Upstream.Output == NewPublisher.Output { |
| 2446 | public typealias Output = Upstream.Output |
| 2447 | public typealias Failure = NewPublisher.Failure |
| 2448 | public let upstream: Upstream |
| 2449 | public let handler: (Upstream.Failure) -> NewPublisher |
| 2450 | public init(upstream: Upstream, handler: @escaping (Upstream.Failure) -> NewPublisher) |
| 2451 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, NewPublisher.Failure == S.Failure, NewPublisher.Output == S.Input |
| 2452 | } |
| 2453 | public struct TryCatch<Upstream, NewPublisher> : Combine.Publisher where Upstream : Combine.Publisher, NewPublisher : Combine.Publisher, Upstream.Output == NewPublisher.Output { |
| 2454 | public typealias Output = Upstream.Output |
| 2455 | public typealias Failure = Swift.Error |
| 2456 | public let upstream: Upstream |
| 2457 | public let handler: (Upstream.Failure) throws -> NewPublisher |
| 2458 | public init(upstream: Upstream, handler: @escaping (Upstream.Failure) throws -> NewPublisher) |
| 2459 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, NewPublisher.Output == S.Input, S.Failure == any Swift.Error |
| 2460 | } |
| 2461 | } |
| 2462 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2463 | extension Combine.Publisher { |
| 2464 | public func flatMap<T, P>(maxPublishers: Combine.Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine.Publishers.FlatMap<P, Self> where T == P.Output, P : Combine.Publisher, Self.Failure == P.Failure |
| 2465 | } |
| 2466 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2467 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 2468 | public func flatMap<P>(maxPublishers: Combine.Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine.Publishers.FlatMap<P, Combine.Publishers.SetFailureType<Self, P.Failure>> where P : Combine.Publisher |
| 2469 | } |
| 2470 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2471 | extension Combine.Publisher where Self.Failure == Swift.Never { |
| 2472 | public func flatMap<P>(maxPublishers: Combine.Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine.Publishers.FlatMap<P, Self> where P : Combine.Publisher, P.Failure == Swift.Never |
| 2473 | } |
| 2474 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2475 | extension Combine.Publisher { |
| 2476 | public func flatMap<P>(maxPublishers: Combine.Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine.Publishers.FlatMap<Combine.Publishers.SetFailureType<P, Self.Failure>, Self> where P : Combine.Publisher, P.Failure == Swift.Never |
| 2477 | } |
| 2478 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2479 | extension Combine.Publishers { |
| 2480 | public struct FlatMap<NewPublisher, Upstream> : Combine.Publisher where NewPublisher : Combine.Publisher, Upstream : Combine.Publisher, NewPublisher.Failure == Upstream.Failure { |
| 2481 | public typealias Output = NewPublisher.Output |
| 2482 | public typealias Failure = Upstream.Failure |
| 2483 | public let upstream: Upstream |
| 2484 | public let maxPublishers: Combine.Subscribers.Demand |
| 2485 | public let transform: (Upstream.Output) -> NewPublisher |
| 2486 | public init(upstream: Upstream, maxPublishers: Combine.Subscribers.Demand, transform: @escaping (Upstream.Output) -> NewPublisher) |
| 2487 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, NewPublisher.Output == S.Input, Upstream.Failure == S.Failure |
| 2488 | } |
| 2489 | } |
| 2490 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2491 | extension Combine.Publisher { |
| 2492 | public func delay<S>(for interval: S.SchedulerTimeType.Stride, tolerance: S.SchedulerTimeType.Stride? = nil, scheduler: S, options: S.SchedulerOptions? = nil) -> Combine.Publishers.Delay<Self, S> where S : Combine.Scheduler |
| 2493 | } |
| 2494 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2495 | extension Combine.Publishers { |
| 2496 | public struct Delay<Upstream, Context> : Combine.Publisher where Upstream : Combine.Publisher, Context : Combine.Scheduler { |
| 2497 | public typealias Output = Upstream.Output |
| 2498 | public typealias Failure = Upstream.Failure |
| 2499 | public let upstream: Upstream |
| 2182 | } |
| 2183 | } |
| 2184 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2185 | extension Combine::AnyPublisher : Combine::Publisher { |
| 2186 | @inlinable public func receive<S>(subscriber: S) where Output == S.Input, Failure == S.Failure, S : Combine::Subscriber { |
| 2187 | return box.receive(subscriber: subscriber) |
| 2188 | } |
| 2189 | } |
| 2190 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2191 | extension Combine::Publisher { |
| 2192 | public func map<T>(_ transform: @escaping (Self.Output) -> T) -> Combine::Publishers.Combine::Map<Self, T> |
| 2193 | public func tryMap<T>(_ transform: @escaping (Self.Output) throws -> T) -> Combine::Publishers.Combine::TryMap<Self, T> |
| 2194 | } |
| 2195 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2196 | extension Combine::Publishers { |
| 2197 | public struct Map<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2198 | public typealias Failure = Upstream.Failure |
| 2199 | public let upstream: Upstream |
| 2200 | public let transform: (Upstream.Output) -> Output |
| 2201 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) -> Output) |
| 2202 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, Upstream.Failure == S.Failure |
| 2203 | } |
| 2204 | public struct TryMap<Upstream, Output> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2205 | public typealias Failure = Swift::Error |
| 2206 | public let upstream: Upstream |
| 2207 | public let transform: (Upstream.Output) throws -> Output |
| 2208 | public init(upstream: Upstream, transform: @escaping (Upstream.Output) throws -> Output) |
| 2209 | public func receive<S>(subscriber: S) where Output == S.Input, S : Combine::Subscriber, S.Failure == any Swift::Error |
| 2210 | } |
| 2211 | } |
| 2212 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2213 | extension Combine::Publishers.Combine::Map { |
| 2214 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine::Publishers.Combine::Map<Upstream, T> |
| 2215 | public func tryMap<T>(_ transform: @escaping (Output) throws -> T) -> Combine::Publishers.Combine::TryMap<Upstream, T> |
| 2216 | } |
| 2217 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2218 | extension Combine::Publishers.Combine::TryMap { |
| 2219 | public func map<T>(_ transform: @escaping (Output) -> T) -> Combine::Publishers.Combine::TryMap<Upstream, T> |
| 2220 | public func tryMap<T>(_ transform: @escaping (Output) throws -> T) -> Combine::Publishers.Combine::TryMap<Upstream, T> |
| 2221 | } |
| 2222 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2223 | extension Combine::Publisher { |
| 2224 | public func timeout<S>(_ interval: S.SchedulerTimeType.Stride, scheduler: S, options: S.SchedulerOptions? = nil, customError: (() -> Self.Failure)? = nil) -> Combine::Publishers.Combine::Timeout<Self, S> where S : Combine::Scheduler |
| 2225 | } |
| 2226 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2227 | extension Combine::Publishers { |
| 2228 | public struct Timeout<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 2229 | public typealias Output = Upstream.Output |
| 2230 | public typealias Failure = Upstream.Failure |
| 2231 | public let upstream: Upstream |
| 2232 | public let interval: Context.SchedulerTimeType.Stride |
| 2233 | public let scheduler: Context |
| 2234 | public let options: Context.SchedulerOptions? |
| 2235 | public let customError: (() -> Combine::Publishers.Combine::Timeout<Upstream, Context>.Combine::Failure)? |
| 2236 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions?, customError: (() -> Combine::Publishers.Combine::Timeout<Upstream, Context>.Failure)?) |
| 2237 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2238 | } |
| 2239 | } |
| 2240 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2241 | extension Combine::Publisher { |
| 2242 | public func buffer(size: Swift::Int, prefetch: Combine::Publishers.Combine::PrefetchStrategy, whenFull: Combine::Publishers.Combine::BufferingStrategy<Self.Failure>) -> Combine::Publishers.Combine::Buffer<Self> |
| 2243 | } |
| 2244 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2245 | extension Combine::Publishers { |
| 2246 | public enum PrefetchStrategy { |
| 2247 | case keepFull |
| 2248 | case byRequest |
| 2249 | public static func == (a: Combine::Publishers.Combine::PrefetchStrategy, b: Combine::Publishers.Combine::PrefetchStrategy) -> Swift::Bool |
| 2250 | public func hash(into hasher: inout Swift::Hasher) |
| 2251 | public var hashValue: Swift::Int { |
| 2252 | get |
| 2253 | } |
| 2254 | } |
| 2255 | public enum BufferingStrategy<Failure> where Failure : Swift::Error { |
| 2256 | case dropNewest |
| 2257 | case dropOldest |
| 2258 | case customError(() -> Failure) |
| 2259 | } |
| 2260 | public struct Buffer<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2261 | public typealias Output = Upstream.Output |
| 2262 | public typealias Failure = Upstream.Failure |
| 2263 | public let upstream: Upstream |
| 2264 | public let size: Swift::Int |
| 2265 | public let prefetch: Combine::Publishers.Combine::PrefetchStrategy |
| 2266 | public let whenFull: Combine::Publishers.Combine::BufferingStrategy<Combine::Publishers.Combine::Buffer<Upstream>.Combine::Failure> |
| 2267 | public init(upstream: Upstream, size: Swift::Int, prefetch: Combine::Publishers.Combine::PrefetchStrategy, whenFull: Combine::Publishers.Combine::BufferingStrategy<Combine::Publishers.Combine::Buffer<Upstream>.Failure>) |
| 2268 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2269 | } |
| 2270 | } |
| 2271 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2272 | extension Swift::Sequence { |
| 2273 | public var publisher: Combine::Publishers.Combine::Sequence<Self, Swift::Never> { |
| 2274 | get |
| 2275 | } |
| 2276 | } |
| 2277 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2278 | extension Combine::Publishers { |
| 2279 | public struct Sequence<Elements, Failure> : Combine::Publisher where Elements : Swift::Sequence, Failure : Swift::Error { |
| 2280 | public typealias Output = Elements.Element |
| 2281 | public let sequence: Elements |
| 2282 | public init(sequence: Elements) |
| 2283 | public func receive<S>(subscriber: S) where Failure == S.Failure, S : Combine::Subscriber, Elements.Element == S.Input |
| 2284 | } |
| 2285 | } |
| 2286 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2287 | extension Combine::Publishers.Combine::Sequence where Failure == Swift::Never { |
| 2288 | public func min(by areInIncreasingOrder: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output, Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2289 | public func max(by areInIncreasingOrder: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output, Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2290 | public func first(where predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2291 | } |
| 2292 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2293 | extension Combine::Publishers.Combine::Sequence { |
| 2294 | public func allSatisfy(_ predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 2295 | public func tryAllSatisfy(_ predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 2296 | public func collect() -> Swift::Result<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure>.Combine::Publisher |
| 2297 | public func compactMap<T>(_ transform: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> T?) -> Combine::Publishers.Combine::Sequence<[T], Failure> |
| 2298 | public func contains(where predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 2299 | public func tryContains(where predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) throws -> Swift::Bool) -> Swift::Result<Swift::Bool, any Swift::Error>.Combine::Publisher |
| 2300 | public func drop(while predicate: (Elements.Element) -> Swift::Bool) -> Combine::Publishers.Combine::Sequence<Swift::DropWhileSequence<Elements>, Failure> |
| 2301 | public func dropFirst(_ count: Swift::Int = 1) -> Combine::Publishers.Combine::Sequence<Swift::DropFirstSequence<Elements>, Failure> |
| 2302 | public func filter(_ isIncluded: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Combine::Publishers.Combine::Sequence<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure> |
| 2303 | public func ignoreOutput() -> Combine::Empty<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output, Failure> |
| 2304 | public func map<T>(_ transform: (Elements.Element) -> T) -> Combine::Publishers.Combine::Sequence<[T], Failure> |
| 2305 | public func prefix(_ maxLength: Swift::Int) -> Combine::Publishers.Combine::Sequence<Swift::PrefixSequence<Elements>, Failure> |
| 2306 | public func prefix(while predicate: (Elements.Element) -> Swift::Bool) -> Combine::Publishers.Combine::Sequence<[Elements.Element], Failure> |
| 2307 | public func reduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> T) -> Swift::Result<T, Failure>.Combine::Publisher |
| 2308 | public func tryReduce<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) throws -> T) -> Swift::Result<T, any Swift::Error>.Combine::Publisher |
| 2309 | public func replaceNil<T>(with output: T) -> Combine::Publishers.Combine::Sequence<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure> where Elements.Element == T? |
| 2310 | public func scan<T>(_ initialResult: T, _ nextPartialResult: @escaping (T, Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> T) -> Combine::Publishers.Combine::Sequence<[T], Failure> |
| 2311 | public func setFailureType<E>(to error: E.Type) -> Combine::Publishers.Combine::Sequence<Elements, E> where E : Swift::Error |
| 2312 | } |
| 2313 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2314 | extension Combine::Publishers.Combine::Sequence where Elements.Element : Swift::Equatable { |
| 2315 | public func removeDuplicates() -> Combine::Publishers.Combine::Sequence<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure> |
| 2316 | public func contains(_ output: Elements.Element) -> Swift::Result<Swift::Bool, Failure>.Combine::Publisher |
| 2317 | } |
| 2318 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2319 | extension Combine::Publishers.Combine::Sequence where Failure == Swift::Never, Elements.Element : Swift::Comparable { |
| 2320 | public func min() -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2321 | public func max() -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2322 | } |
| 2323 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2324 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::Collection, Failure == Swift::Never { |
| 2325 | public func first() -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2326 | public func output(at index: Elements.Index) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2327 | } |
| 2328 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2329 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::Collection { |
| 2330 | public func count() -> Swift::Result<Swift::Int, Failure>.Combine::Publisher |
| 2331 | public func output(in range: Swift::Range<Elements.Index>) -> Combine::Publishers.Combine::Sequence<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure> |
| 2332 | } |
| 2333 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2334 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::BidirectionalCollection, Failure == Swift::Never { |
| 2335 | public func last() -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2336 | public func last(where predicate: (Combine::Publishers.Combine::Sequence<Elements, Failure>.Output) -> Swift::Bool) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2337 | } |
| 2338 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2339 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::RandomAccessCollection, Failure == Swift::Never { |
| 2340 | public func output(at index: Elements.Index) -> Swift::Optional<Combine::Publishers.Combine::Sequence<Elements, Failure>.Output>.Combine::Publisher |
| 2341 | } |
| 2342 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2343 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::RandomAccessCollection { |
| 2344 | public func output(in range: Swift::Range<Elements.Index>) -> Combine::Publishers.Combine::Sequence<[Combine::Publishers.Combine::Sequence<Elements, Failure>.Output], Failure> |
| 2345 | } |
| 2346 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2347 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::RandomAccessCollection, Failure == Swift::Never { |
| 2348 | public func count() -> Combine::Just<Swift::Int> |
| 2349 | } |
| 2350 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2351 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::RandomAccessCollection { |
| 2352 | public func count() -> Swift::Result<Swift::Int, Failure>.Combine::Publisher |
| 2353 | } |
| 2354 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2355 | extension Combine::Publishers.Combine::Sequence where Elements : Swift::RangeReplaceableCollection { |
| 2356 | public func prepend(_ elements: Combine::Publishers.Combine::Sequence<Elements, Failure>.Output...) -> Combine::Publishers.Combine::Sequence<Elements, Failure> |
| 2357 | public func prepend<S>(_ elements: S) -> Combine::Publishers.Combine::Sequence<Elements, Failure> where S : Swift::Sequence, Elements.Element == S.Element |
| 2358 | public func prepend(_ publisher: Combine::Publishers.Combine::Sequence<Elements, Failure>) -> Combine::Publishers.Combine::Sequence<Elements, Failure> |
| 2359 | public func append(_ elements: Combine::Publishers.Combine::Sequence<Elements, Failure>.Output...) -> Combine::Publishers.Combine::Sequence<Elements, Failure> |
| 2360 | public func append<S>(_ elements: S) -> Combine::Publishers.Combine::Sequence<Elements, Failure> where S : Swift::Sequence, Elements.Element == S.Element |
| 2361 | public func append(_ publisher: Combine::Publishers.Combine::Sequence<Elements, Failure>) -> Combine::Publishers.Combine::Sequence<Elements, Failure> |
| 2362 | } |
| 2363 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2364 | extension Combine::Publishers.Combine::Sequence : Swift::Equatable where Elements : Swift::Equatable { |
| 2365 | public static func == (lhs: Combine::Publishers.Combine::Sequence<Elements, Failure>, rhs: Combine::Publishers.Combine::Sequence<Elements, Failure>) -> Swift::Bool |
| 2366 | } |
| 2367 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2368 | extension Combine::Publisher { |
| 2369 | public func zip<P>(_ other: P) -> Combine::Publishers.Combine::Zip<Self, P> where P : Combine::Publisher, Self.Failure == P.Failure |
| 2370 | public func zip<P, T>(_ other: P, _ transform: @escaping (Self.Output, P.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::Zip<Self, P>, T> where P : Combine::Publisher, Self.Failure == P.Failure |
| 2371 | public func zip<P, Q>(_ publisher1: P, _ publisher2: Q) -> Combine::Publishers.Combine::Zip3<Self, P, Q> where P : Combine::Publisher, Q : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 2372 | public func zip<P, Q, T>(_ publisher1: P, _ publisher2: Q, _ transform: @escaping (Self.Output, P.Output, Q.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::Zip3<Self, P, Q>, T> where P : Combine::Publisher, Q : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure |
| 2373 | public func zip<P, Q, R>(_ publisher1: P, _ publisher2: Q, _ publisher3: R) -> Combine::Publishers.Combine::Zip4<Self, P, Q, R> where P : Combine::Publisher, Q : Combine::Publisher, R : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 2374 | public func zip<P, Q, R, T>(_ publisher1: P, _ publisher2: Q, _ publisher3: R, _ transform: @escaping (Self.Output, P.Output, Q.Output, R.Output) -> T) -> Combine::Publishers.Combine::Map<Combine::Publishers.Combine::Zip4<Self, P, Q, R>, T> where P : Combine::Publisher, Q : Combine::Publisher, R : Combine::Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure, Q.Failure == R.Failure |
| 2375 | } |
| 2376 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2377 | extension Combine::Publishers { |
| 2378 | public struct Zip<A, B> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, A.Failure == B.Failure { |
| 2379 | public typealias Output = (A.Output, B.Output) |
| 2380 | public typealias Failure = A.Failure |
| 2381 | public let a: A |
| 2382 | public let b: B |
| 2383 | public init(_ a: A, _ b: B) |
| 2384 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, B.Failure == S.Failure, S.Input == (A.Output, B.Output) |
| 2385 | } |
| 2386 | public struct Zip3<A, B, C> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, A.Failure == B.Failure, B.Failure == C.Failure { |
| 2387 | public typealias Output = (A.Output, B.Output, C.Output) |
| 2388 | public typealias Failure = A.Failure |
| 2389 | public let a: A |
| 2390 | public let b: B |
| 2391 | public let c: C |
| 2392 | public init(_ a: A, _ b: B, _ c: C) |
| 2393 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, C.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output) |
| 2394 | } |
| 2395 | public struct Zip4<A, B, C, D> : Combine::Publisher where A : Combine::Publisher, B : Combine::Publisher, C : Combine::Publisher, D : Combine::Publisher, A.Failure == B.Failure, B.Failure == C.Failure, C.Failure == D.Failure { |
| 2396 | public typealias Output = (A.Output, B.Output, C.Output, D.Output) |
| 2397 | public typealias Failure = A.Failure |
| 2398 | public let a: A |
| 2399 | public let b: B |
| 2400 | public let c: C |
| 2401 | public let d: D |
| 2402 | public init(_ a: A, _ b: B, _ c: C, _ d: D) |
| 2403 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, D.Failure == S.Failure, S.Input == (A.Output, B.Output, C.Output, D.Output) |
| 2404 | } |
| 2405 | } |
| 2406 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2407 | extension Combine::Publishers.Combine::Zip : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable { |
| 2408 | public static func == (lhs: Combine::Publishers.Combine::Zip<A, B>, rhs: Combine::Publishers.Combine::Zip<A, B>) -> Swift::Bool |
| 2409 | } |
| 2410 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2411 | extension Combine::Publishers.Combine::Zip3 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable { |
| 2412 | public static func == (lhs: Combine::Publishers.Combine::Zip3<A, B, C>, rhs: Combine::Publishers.Combine::Zip3<A, B, C>) -> Swift::Bool |
| 2413 | } |
| 2414 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2415 | extension Combine::Publishers.Combine::Zip4 : Swift::Equatable where A : Swift::Equatable, B : Swift::Equatable, C : Swift::Equatable, D : Swift::Equatable { |
| 2416 | public static func == (lhs: Combine::Publishers.Combine::Zip4<A, B, C, D>, rhs: Combine::Publishers.Combine::Zip4<A, B, C, D>) -> Swift::Bool |
| 2417 | } |
| 2418 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2419 | extension Combine::Publisher { |
| 2420 | public func output(at index: Swift::Int) -> Combine::Publishers.Combine::Output<Self> |
| 2421 | public func output<R>(in range: R) -> Combine::Publishers.Combine::Output<Self> where R : Swift::RangeExpression, R.Bound == Swift::Int |
| 2422 | } |
| 2423 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2424 | extension Combine::Publishers { |
| 2425 | public struct Output<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2426 | public typealias Output = Upstream.Output |
| 2427 | public typealias Failure = Upstream.Failure |
| 2428 | public let upstream: Upstream |
| 2429 | public let range: Swift::CountableRange<Swift::Int> |
| 2430 | public init(upstream: Upstream, range: Swift::CountableRange<Swift::Int>) |
| 2431 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2432 | } |
| 2433 | } |
| 2434 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2435 | extension Combine::Publishers.Combine::Output : Swift::Equatable where Upstream : Swift::Equatable { |
| 2436 | public static func == (lhs: Combine::Publishers.Combine::Output<Upstream>, rhs: Combine::Publishers.Combine::Output<Upstream>) -> Swift::Bool |
| 2437 | } |
| 2438 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2439 | extension Combine::Publisher { |
| 2440 | public func `catch`<P>(_ handler: @escaping (Self.Failure) -> P) -> Combine::Publishers.Combine::Catch<Self, P> where P : Combine::Publisher, Self.Output == P.Output |
| 2441 | public func tryCatch<P>(_ handler: @escaping (Self.Failure) throws -> P) -> Combine::Publishers.Combine::TryCatch<Self, P> where P : Combine::Publisher, Self.Output == P.Output |
| 2442 | } |
| 2443 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2444 | extension Combine::Publishers { |
| 2445 | public struct Catch<Upstream, NewPublisher> : Combine::Publisher where Upstream : Combine::Publisher, NewPublisher : Combine::Publisher, Upstream.Output == NewPublisher.Output { |
| 2446 | public typealias Output = Upstream.Output |
| 2447 | public typealias Failure = NewPublisher.Failure |
| 2448 | public let upstream: Upstream |
| 2449 | public let handler: (Upstream.Failure) -> NewPublisher |
| 2450 | public init(upstream: Upstream, handler: @escaping (Upstream.Failure) -> NewPublisher) |
| 2451 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, NewPublisher.Failure == S.Failure, NewPublisher.Output == S.Input |
| 2452 | } |
| 2453 | public struct TryCatch<Upstream, NewPublisher> : Combine::Publisher where Upstream : Combine::Publisher, NewPublisher : Combine::Publisher, Upstream.Output == NewPublisher.Output { |
| 2454 | public typealias Output = Upstream.Output |
| 2455 | public typealias Failure = Swift::Error |
| 2456 | public let upstream: Upstream |
| 2457 | public let handler: (Upstream.Failure) throws -> NewPublisher |
| 2458 | public init(upstream: Upstream, handler: @escaping (Upstream.Failure) throws -> NewPublisher) |
| 2459 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, NewPublisher.Output == S.Input, S.Failure == any Swift::Error |
| 2460 | } |
| 2461 | } |
| 2462 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2463 | extension Combine::Publisher { |
| 2464 | public func flatMap<T, P>(maxPublishers: Combine::Subscribers.Combine::Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine::Publishers.Combine::FlatMap<P, Self> where T == P.Output, P : Combine::Publisher, Self.Failure == P.Failure |
| 2465 | } |
| 2466 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2467 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 2468 | public func flatMap<P>(maxPublishers: Combine::Subscribers.Combine::Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine::Publishers.Combine::FlatMap<P, Combine::Publishers.Combine::SetFailureType<Self, P.Failure>> where P : Combine::Publisher |
| 2469 | } |
| 2470 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2471 | extension Combine::Publisher where Self.Failure == Swift::Never { |
| 2472 | public func flatMap<P>(maxPublishers: Combine::Subscribers.Combine::Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine::Publishers.Combine::FlatMap<P, Self> where P : Combine::Publisher, P.Failure == Swift::Never |
| 2473 | } |
| 2474 | @available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0, *) |
| 2475 | extension Combine::Publisher { |
| 2476 | public func flatMap<P>(maxPublishers: Combine::Subscribers.Combine::Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Combine::Publishers.Combine::FlatMap<Combine::Publishers.Combine::SetFailureType<P, Self.Failure>, Self> where P : Combine::Publisher, P.Failure == Swift::Never |
| 2477 | } |
| 2478 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2479 | extension Combine::Publishers { |
| 2480 | public struct FlatMap<NewPublisher, Upstream> : Combine::Publisher where NewPublisher : Combine::Publisher, Upstream : Combine::Publisher, NewPublisher.Failure == Upstream.Failure { |
| 2481 | public typealias Output = NewPublisher.Output |
| 2482 | public typealias Failure = Upstream.Failure |
| 2483 | public let upstream: Upstream |
| 2484 | public let maxPublishers: Combine::Subscribers.Combine::Demand |
| 2485 | public let transform: (Upstream.Output) -> NewPublisher |
| 2486 | public init(upstream: Upstream, maxPublishers: Combine::Subscribers.Combine::Demand, transform: @escaping (Upstream.Output) -> NewPublisher) |
| 2487 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, NewPublisher.Output == S.Input, Upstream.Failure == S.Failure |
| 2488 | } |
| 2489 | } |
| 2490 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2491 | extension Combine::Publisher { |
| 2492 | public func delay<S>(for interval: S.SchedulerTimeType.Stride, tolerance: S.SchedulerTimeType.Stride? = nil, scheduler: S, options: S.SchedulerOptions? = nil) -> Combine::Publishers.Combine::Delay<Self, S> where S : Combine::Scheduler |
| 2493 | } |
| 2494 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2495 | extension Combine::Publishers { |
| 2496 | public struct Delay<Upstream, Context> : Combine::Publisher where Upstream : Combine::Publisher, Context : Combine::Scheduler { |
| 2497 | public typealias Output = Upstream.Output |
| 2498 | public typealias Failure = Upstream.Failure |
| 2499 | public let upstream: Upstream |
| 2502 | public let scheduler: Context |
| 2503 | public let options: Context.SchedulerOptions? |
| 2504 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, tolerance: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions? = nil) |
| 2505 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2506 | } |
| 2507 | } |
| 2508 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2509 | extension Combine.Publisher { |
| 2510 | public func dropFirst(_ count: Swift.Int = 1) -> Combine.Publishers.Drop<Self> |
| 2511 | } |
| 2512 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2513 | extension Combine.Publishers { |
| 2514 | public struct Drop<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2515 | public typealias Output = Upstream.Output |
| 2516 | public typealias Failure = Upstream.Failure |
| 2517 | public let upstream: Upstream |
| 2518 | public let count: Swift.Int |
| 2519 | public init(upstream: Upstream, count: Swift.Int) |
| 2520 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2521 | } |
| 2522 | } |
| 2523 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2524 | extension Combine.Publishers.Drop : Swift.Equatable where Upstream : Swift.Equatable { |
| 2525 | public static func == (lhs: Combine.Publishers.Drop<Upstream>, rhs: Combine.Publishers.Drop<Upstream>) -> Swift.Bool |
| 2526 | } |
| 2527 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2528 | extension Combine.Future where Failure == Swift.Never { |
| 2529 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 2530 | final public var value: Output { |
| 2531 | get async |
| 2532 | } |
| 2533 | } |
| 2534 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2535 | extension Combine.Future { |
| 2536 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 2537 | final public var value: Output { |
| 2538 | get async throws |
| 2539 | } |
| 2540 | } |
| 2541 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2542 | extension Combine.Publisher { |
| 2543 | public func eraseToAnyPublisher() -> Combine.AnyPublisher<Self.Output, Self.Failure> |
| 2544 | } |
| 2545 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2546 | extension Combine.Publisher { |
| 2547 | public func first() -> Combine.Publishers.First<Self> |
| 2548 | public func first(where predicate: @escaping (Self.Output) -> Swift.Bool) -> Combine.Publishers.FirstWhere<Self> |
| 2549 | public func tryFirst(where predicate: @escaping (Self.Output) throws -> Swift.Bool) -> Combine.Publishers.TryFirstWhere<Self> |
| 2550 | } |
| 2551 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2552 | extension Combine.Publishers { |
| 2553 | public struct First<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2554 | public typealias Output = Upstream.Output |
| 2555 | public typealias Failure = Upstream.Failure |
| 2556 | public let upstream: Upstream |
| 2557 | public init(upstream: Upstream) |
| 2558 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2559 | } |
| 2560 | public struct FirstWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2561 | public typealias Output = Upstream.Output |
| 2562 | public typealias Failure = Upstream.Failure |
| 2563 | public let upstream: Upstream |
| 2564 | public let predicate: (Combine.Publishers.FirstWhere<Upstream>.Output) -> Swift.Bool |
| 2565 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.FirstWhere<Upstream>.Output) -> Swift.Bool) |
| 2566 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2567 | } |
| 2568 | public struct TryFirstWhere<Upstream> : Combine.Publisher where Upstream : Combine.Publisher { |
| 2569 | public typealias Output = Upstream.Output |
| 2570 | public typealias Failure = Swift.Error |
| 2571 | public let upstream: Upstream |
| 2572 | public let predicate: (Combine.Publishers.TryFirstWhere<Upstream>.Output) throws -> Swift.Bool |
| 2573 | public init(upstream: Upstream, predicate: @escaping (Combine.Publishers.TryFirstWhere<Upstream>.Output) throws -> Swift.Bool) |
| 2574 | public func receive<S>(subscriber: S) where S : Combine.Subscriber, Upstream.Output == S.Input, S.Failure == any Swift.Error |
| 2575 | } |
| 2576 | } |
| 2577 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2578 | extension Combine.Publishers.First : Swift.Equatable where Upstream : Swift.Equatable { |
| 2579 | public static func == (lhs: Combine.Publishers.First<Upstream>, rhs: Combine.Publishers.First<Upstream>) -> Swift.Bool |
| 2580 | } |
| 2581 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2582 | extension Combine.Subscribers.Completion : Swift.Sendable {} |
| 2583 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2584 | extension Combine.Subscribers.Demand : Swift.Sendable {} |
| 2585 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2586 | extension Combine.Subscribers.Demand : Swift.BitwiseCopyable {} |
| 2587 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2588 | extension Combine.Publishers.PrefetchStrategy : Swift.Equatable {} |
| 2589 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2590 | extension Combine.Publishers.PrefetchStrategy : Swift.Hashable {} |
| 2502 | public let scheduler: Context |
| 2503 | public let options: Context.SchedulerOptions? |
| 2504 | public init(upstream: Upstream, interval: Context.SchedulerTimeType.Stride, tolerance: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions? = nil) |
| 2505 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2506 | } |
| 2507 | } |
| 2508 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2509 | extension Combine::Publisher { |
| 2510 | public func dropFirst(_ count: Swift::Int = 1) -> Combine::Publishers.Combine::Drop<Self> |
| 2511 | } |
| 2512 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2513 | extension Combine::Publishers { |
| 2514 | public struct Drop<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2515 | public typealias Output = Upstream.Output |
| 2516 | public typealias Failure = Upstream.Failure |
| 2517 | public let upstream: Upstream |
| 2518 | public let count: Swift::Int |
| 2519 | public init(upstream: Upstream, count: Swift::Int) |
| 2520 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2521 | } |
| 2522 | } |
| 2523 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2524 | extension Combine::Publishers.Combine::Drop : Swift::Equatable where Upstream : Swift::Equatable { |
| 2525 | public static func == (lhs: Combine::Publishers.Combine::Drop<Upstream>, rhs: Combine::Publishers.Combine::Drop<Upstream>) -> Swift::Bool |
| 2526 | } |
| 2527 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2528 | extension Combine::Future where Failure == Swift::Never { |
| 2529 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 2530 | final public var value: Output { |
| 2531 | get async |
| 2532 | } |
| 2533 | } |
| 2534 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2535 | extension Combine::Future { |
| 2536 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *) |
| 2537 | final public var value: Output { |
| 2538 | get async throws |
| 2539 | } |
| 2540 | } |
| 2541 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2542 | extension Combine::Publisher { |
| 2543 | public func eraseToAnyPublisher() -> Combine::AnyPublisher<Self.Output, Self.Failure> |
| 2544 | } |
| 2545 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2546 | extension Combine::Publisher { |
| 2547 | public func first() -> Combine::Publishers.Combine::First<Self> |
| 2548 | public func first(where predicate: @escaping (Self.Output) -> Swift::Bool) -> Combine::Publishers.Combine::FirstWhere<Self> |
| 2549 | public func tryFirst(where predicate: @escaping (Self.Output) throws -> Swift::Bool) -> Combine::Publishers.Combine::TryFirstWhere<Self> |
| 2550 | } |
| 2551 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2552 | extension Combine::Publishers { |
| 2553 | public struct First<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2554 | public typealias Output = Upstream.Output |
| 2555 | public typealias Failure = Upstream.Failure |
| 2556 | public let upstream: Upstream |
| 2557 | public init(upstream: Upstream) |
| 2558 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2559 | } |
| 2560 | public struct FirstWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2561 | public typealias Output = Upstream.Output |
| 2562 | public typealias Failure = Upstream.Failure |
| 2563 | public let upstream: Upstream |
| 2564 | public let predicate: (Combine::Publishers.Combine::FirstWhere<Upstream>.Combine::Output) -> Swift::Bool |
| 2565 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::FirstWhere<Upstream>.Output) -> Swift::Bool) |
| 2566 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Failure == S.Failure, Upstream.Output == S.Input |
| 2567 | } |
| 2568 | public struct TryFirstWhere<Upstream> : Combine::Publisher where Upstream : Combine::Publisher { |
| 2569 | public typealias Output = Upstream.Output |
| 2570 | public typealias Failure = Swift::Error |
| 2571 | public let upstream: Upstream |
| 2572 | public let predicate: (Combine::Publishers.Combine::TryFirstWhere<Upstream>.Combine::Output) throws -> Swift::Bool |
| 2573 | public init(upstream: Upstream, predicate: @escaping (Combine::Publishers.Combine::TryFirstWhere<Upstream>.Output) throws -> Swift::Bool) |
| 2574 | public func receive<S>(subscriber: S) where S : Combine::Subscriber, Upstream.Output == S.Input, S.Failure == any Swift::Error |
| 2575 | } |
| 2576 | } |
| 2577 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2578 | extension Combine::Publishers.Combine::First : Swift::Equatable where Upstream : Swift::Equatable { |
| 2579 | public static func == (lhs: Combine::Publishers.Combine::First<Upstream>, rhs: Combine::Publishers.Combine::First<Upstream>) -> Swift::Bool |
| 2580 | } |
| 2581 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2582 | extension Combine::Subscribers.Combine::Completion : Swift::Sendable {} |
| 2583 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2584 | extension Combine::Subscribers.Combine::Demand : Swift::Sendable {} |
| 2585 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2586 | extension Combine::Subscribers.Combine::Demand : Swift::BitwiseCopyable {} |
| 2587 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2588 | extension Combine::Publishers.Combine::PrefetchStrategy : Swift::Equatable {} |
| 2589 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) |
| 2590 | extension Combine::Publishers.Combine::PrefetchStrategy : Swift::Hashable {} |