Generic Instance Method

replaceNil(with:)

Replaces nil elements in the stream with the proviced element.

Declaration

func replaceNil<T>(with output: T) -> Publishers.Map<Publishers.CombineLatest<A, B>, T>

Parameters

output

The element to use when replacing nil.

Return Value

A publisher that replaces nil elements from the upstream publisher with the provided element.