Created
April 27, 2020 23:17
-
-
Save masliukivskyi/bad82a9bb9a0991385888d6b2fe571fa to your computer and use it in GitHub Desktop.
Basics of Combine
This file contains hidden or 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
let subject = PassthroughSubject<String, Never>() | |
subject.send("๐") | |
subject.sink { (value) in | |
print("Received value: \(value)") | |
} | |
subject.send("๐ถโ) | |
Output: | |
Received value: ๐ถ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment