Instance Method

last()

Only publishes the last element of a stream, after the stream finishes.

Declaration

func last() -> Publishers.Last<Publishers.Catch<Upstream, NewPublisher>>

Return Value

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