Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
`Just`’s `ignoreOutPut` overload.
Just("someString")
.ignoreOutput() /// (1) Combine specializes
/// [`Just`’s overload of `ignoreOutput`](https://developer.apple.com/documentation/combine/just/3343929-ignoreoutput)
/// to return an `Empty<String, Never>` (note, the output type didn’t get `Never`’d out) instead of wrapping
/// it a [`Publishers.IgnoreOutput`](https://developer.apple.com/documentation/combine/publishers/ignoreoutput) level.
.append("anotherStringPostFinished") /// (2) Since upstream is an `Empty<String, Never>` and the
/// `Output` generic _didn’t_ get `Never`’d out, the `append` here can carry on accepting `String`s.
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.