Last active
January 20, 2022 12:24
-
-
Save max6363/6399c5efc834c23db94304b23296e4aa to your computer and use it in GitHub Desktop.
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
[1, 2, 3] | |
.publisher | |
.sink(receiveCompletion: { completion in | |
switch completion { | |
case .failure(let error): | |
print("Something went wrong: \(error)") | |
case .finished: | |
print("Received Completion") | |
} | |
}, receiveValue: { value in | |
print("Received value \(value)") | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment