Even simpler version:
CurrentValueSubjectString,Error("apple")
.tryCatch { _ in
CurrentValueSubjectString,Error("pear")
}
.retry(1)
.sink(
receiveCompletion: { print("completed \($0)") },
receiveValue: { print("value \($0)") })
.store(in: &cancellables)
leaks the same
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: