Instance Method

contains(_:)

Publishes a Boolean value upon receiving an element equal to the argument.

Declaration

func contains(_ output: DeferredPublisher.Output) -> Publishers.Contains<Deferred<DeferredPublisher>>
Available when Output conforms to Equatable.

Parameters

output

An element to match against.

Return Value

A publisher that emits the Boolean value true when the upstream publisher emits a matching value.