fromFuture

Send the single value of the Future when it completes and there is demand.

Source stages

Signature

def fromFuture[T](future: Future[T]): Source[T, NotUsed]

Description

Send the single value of the Future when it completes and there is demand. If the future fails the stream is failed with that exception.

emits the future completes

completes after the future has completed

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.