I wonder if there's any means for pausing the processing of an actor's mailbox of messages.
Actually what I have in mind is blocking for the result of a `Future` without blocking the underlying thread per-se. It would be pretty cool if I had the possibility of doing a non-blocking `Await.result`. The use-case I have is this - say I want to save something in some database, but I don't want the actor to evolve and process new messages until that save operation is done. It's not something that happens frequently, so I'm not really worried about the latency, but doing `Await.result` just feels wrong. Of course, the alternative would be to communicate the demand back to the sender after the Future completes, as a sort of acknowledgement that it can send the next message. But it gets tricky in case the actor receives messages from multiple senders and blocking for the result just seems natural. And short of implementing my own half-backed buffer and state machine for incoming messages, how could I block the actor for the result of a Future without actually blocking the thread? -- Alexandru Nedelcu www.bionicspirit.com PGP Public Key: https://bionicspirit.com/key.aexpk -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
