-
-
Save jasdev/18aed3f3fe550a262ce3a2823fa40fd1 to your computer and use it in GitHub Desktop.
Testing zipping with 10k publishers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Combine | |
import CombineExt | |
var subscriptions = Set<AnyCancellable>() | |
let publishers = Array(repeating: 1, count: 10_000) | |
.map { _ in Just(2) } | |
publishers.zip() | |
.sink(receiveValue: { _ in }) | |
.store(in: &subscriptions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment