-
-
Save jasdev/1e7d5fa1c097e001f206ae190c20915b to your computer and use it in GitHub Desktop.
`Publisher.ignoreOutput` example.
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
Just("someString") | |
.eraseToAnyPublisher() /// (1) The double erasing seems odd, and it is. | |
/// I’ll explain why later. | |
.ignoreOutput() | |
.eraseToAnyPublisher() /// (2) ⇒ AnyPublisher<Never, Never>. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment