Instance Method

last()

Publishes only the last element of a stream, after the stream finishes.

Declaration

func last() -> Publishers.Last<Publishers.MapKeyPath2<Upstream, Output0, Output1>>

Return Value

A publisher that only publishes the last element of a stream.