Generic Instance Method

map(_:_:)

Publishes the values of two key paths as a tuple.

Declaration

func map<T0, T1>(_ keyPath0: KeyPath<Upstream.Output, T0>, _ keyPath1: KeyPath<Upstream.Output, T1>) -> Publishers.MapKeyPath2<Publishers.Timeout<Upstream, Context>, T0, T1>

Parameters

keyPath1

The key path of a property on Output.

keyPath2

The key path of another property on Output.

Return Value

A publisher that publishes the values of two key paths as a tuple.