Last active
January 25, 2022 09:30
-
-
Save eunjin3786/f9e29d63ce33d662180f0fc797cefb25 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
let infallible = Infallible.from([1,2,3]) | |
infallible.subscribe(onNext: { value in | |
print("Got a value:", value) | |
}, onCompleted: { | |
}, onDisposed: { | |
}).disposed(by: disposeBag) | |
// Prints | |
Got a value: 1 | |
Got a value: 2 | |
Got a value: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment