Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 5.04 KB

Combine.md

File metadata and controls

47 lines (36 loc) · 5.04 KB

Combine

Symbols: 99.5% of Apple's iOS API (1017 of 1022, exact) · Rows: 15: 15 ✅ · iOS: 13.0+

Area: Swift, Darwin & runtimes · Apple: Combine · Issues: area:runtime

How isim implements it

  • Adapted: isim's own implementation (isim/swift/overlays/Combine). Upstream demand is always unlimited.

API

API / feature Status iOS Notes
Publisher, Subscriber, Subscription, demand ✅ ≤17 isim's own implementation
PassthroughSubject, CurrentValueSubject ✅ ≤17
@Published, ObservableObject, objectWillChange ✅ ≤17
Just, Future, Deferred, Empty, Fail, Publishers.Sequence ✅ ≤17
sink, assign(to:on:), assign(to:), AnyCancellable, store(in:) ✅ ≤17
map, tryMap, compactMap, filter, flatMap, removeDuplicates, first, prefix, dropFirst ✅ ≤17
merge, combineLatest, debounce, receive(on:), share, handleEvents, eraseToAnyPublisher, setFailureType ✅ ≤17
autoconnect, ConnectablePublisher ✅ ≤17
zip, scan, reduce, collect (all / count / time), delay, throttle, timeout, buffer, count, min/max, contains, allSatisfy, first(where:), last, output(at:/in:), prefix/drop(while:), drop/prefix(untilOutputFrom:), append/prepend, measureInterval, subscribe(on:), multicast/makeConnectable, Record, MergeMany, CombineLatest3/4, Zip3/4, try* variants ✅ ≤17 operators take unlimited demand upstream and queue for the subscriber (Apple propagates demand); Publishers.Sequence is lazy and demand-driven. Tested: SwiftExtrasTest
catch, tryCatch, retry, replaceError, replaceEmpty, mapError, assertNoFailure, switchToLatest, flatMap(maxPublishers:), decode/encode (JSON/property-list coders are TopLevelDecoder/Encoder) ✅ ≤17 Tested: SwiftExtrasTest
flatMap(maxPublishers:) backpressure, Publishers.Merge3…Merge8 (and merge(with:…) on Merge…Merge7), MapKeyPath / MapKeyPath2 / MapKeyPath3, First, Contains, the conditional Equatable conformances (Just, Fail, Empty, Output, Drop, Merge…, Zip…, CombineLatest, Concatenate, Retry, …), Apple's public initializers (Filter, CompactMap, TryMap, FlatMap, HandleEvents, ReceiveOn / Debounce with options, …), Subscribers.Demand Codable, Future.value, Subscribers.Assign description / mirror, Record.Recording.encode(into:) ✅ ≤17 adapted: flatMap(maxPublishers:) requests maxPublishers values from upstream and one more each time an inner publisher finishes, as Apple's (other operators still request unlimited and queue for their downstream, see above); the merges are MergeMany over their publishers; scheduler options are passed to the scheduler. Tested: SwiftLibrariesTest (test_swift_libraries)
.values (AsyncPublisher / AsyncThrowingPublisher), print, breakpoint, handleEvents (all hooks) ✅ ≤17 .values buffers (Apple requests one value per next(), so a fast PassthroughSubject loses values there, not on isim). Tested: SwiftExtrasTest
Foundation publishers: Timer.publish, NotificationCenter.publisher; RunLoop/DispatchQueue schedulers ✅ ≤17
URLSession.dataTaskPublisher ✅ ≤17 tested
KVO publisher (publisher(for: \.keyPath)) ✅ ≤17 Foundation KVO; tested with AVPlayer.timeControlStatus (HelloVideo)

Not yet in isim

5 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.

List