Skip to content

Instantly share code, notes, and snippets.

@jasdev

jasdev/ignore_output_example.swift Secret

Last active Apr 4, 2020
Embed
What would you like to do?
`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
You can’t perform that action at this time.