Making createAsker private, adding docs for 'to', changing Java API to be symmetric to Java

This commit is contained in:
Viktor Klang 2012-02-01 14:54:54 +01:00
parent 75e90cccdf
commit 009a1afe89
5 changed files with 15 additions and 6 deletions

View file

@ -83,10 +83,10 @@ object Patterns {
* // apply some transformation (i.e. enrich with request info)
* final Future<Object> transformed = f.map(new akka.japi.Function<Object, Object>() { ... });
* // send it on to the next stage
* Patterns.pipe(transformed, nextActor);
* Patterns.pipe(transformed).to(nextActor);
* }}}
*/
def pipe[T](future: Future[T], recipient: ActorRef): Future[T] = scalaPipe(future) pipeTo recipient
def pipe[T](future: Future[T]): PipeableFuture[T] = scalaPipe(future)
/**
* Returns a [[akka.dispatch.Future]] that will be completed with success (value `true`) when