Skip to content

Instantly share code, notes, and snippets.

@jasdev
Last active April 4, 2020 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasdev/1e7d5fa1c097e001f206ae190c20915b to your computer and use it in GitHub Desktop.
Save jasdev/1e7d5fa1c097e001f206ae190c20915b to your computer and use it in GitHub Desktop.
`Publisher.ignoreOutput` example.
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