|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PipeToSupport
| Nested Class Summary | |
|---|---|
static class |
PipeToSupport.PipeableFuture<T>
|
| Method Summary | ||
|---|---|---|
|
pipe(scala.concurrent.Future<T> future,
scala.concurrent.ExecutionContext executionContext)
Import this implicit conversion to gain the pipeTo method on Future: |
|
| Method Detail |
|---|
<T> PipeToSupport.PipeableFuture<T> pipe(scala.concurrent.Future<T> future,
scala.concurrent.ExecutionContext executionContext)
pipeTo method on Future:
import akka.pattern.pipe
Future { doExpensiveCalc() } pipeTo nextActor
or
pipe(someFuture) to nextActor
The successful result of the future is sent as a message to the recipient, or
the failure is sent in a Status.Failure to the recipient.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||