Use the “Ask Pattern” to send a request-reply message to the target
ref actor (of the classic actors API).
S generic parameter is used to cast the responses from the actor to the expected outgoing flow type.
- ActorFlow.ask for the
emits when the ask
CompletionStage returned by the provided function finishes for the next element in sequence
backpressures when the number of ask
CompletionStage s reaches the configured parallelism and the downstream backpressures
completes when upstream completes and all ask
CompletionStage s has been completed and all elements has been emitted