Used for type check, to distinguish futures for different actors.
Used internally only.
Implicitly converts a Future[Nothing]
to an akka.actor.Actor.Receive
.
Implicitly converts a Future[Nothing]
to an akka.actor.Actor.Receive
.
The future that takes control forever.
The entry that receive the first message.
override def receive = newContinualReceive(myFuture)
This method is usually used to implement Actor
's receive
method.
Converts a Future[Unit] to an
akka.
Converts a Future[Unit] to an
akka.actor.Actor.Receive.
The future that takes control until it returns.
When future
returns, context.unbecome
will be called, in order to return to the previous akka.actor.Actor.Receive
.
None
if future
has exited before invoking nextMessage.await
, Some
if future
has invoked nextMessage.await
.
receiveUntilReturn(myFuture) foreach { context.become(_, false) }
This method usually works with context.become
.