Skip to content

Instantly share code, notes, and snippets.

Last active May 23, 2020
What would you like to do?
Testing zipping with 10k publishers.
import Combine
import CombineExt
var subscriptions = Set<AnyCancellable>()
let publishers = Array(repeating: 1, count: 10_000)
.map { _ in Just(2) }
.sink(receiveValue: { _ in })
.store(in: &subscriptions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment