Sink.last

Materializes into a Future CompletionStage which will complete with the last value emitted when the stream completes.

Sink stages

Signature

def last[T]: Sink[T, Future[T]]

Description

Materializes into a Future CompletionStage which will complete with the last value emitted when the stream completes. If the stream completes with no elements the Future CompletionStage is failed.

cancels never

backpressures never

Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.