pekko/akka-docs/src/main/paradox/stream/operators/Source/fromFuture.md

29 lines
558 B
Markdown
Raw Normal View History

# fromFuture
Send the single value of the `Future` when it completes and there is demand.
@ref[Source stages](../index.md#source-stages)
@@@div { .group-scala }
## Signature
@@signature [Source.scala]($akka$/akka-stream/src/main/scala/akka/stream/scaladsl/Source.scala) { #fromFuture }
@@@
## 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.
@@@div { .callout }
**emits** the future completes
**completes** after the future has completed
@@@