actor
How are the multiple Actors implementation in Scala different?
With the release of Scala 2.9.0, the Typesafe Stackwas also announced, which combines the Scala language with the Akka framework. Now, though Scala has actors in its standard library, Akka uses its ow[详细]
2023-03-05 14:37 分类:问答How do we test Actors in Java?
The only thing I\'ve seen so far is someone posting an example of testing a TypedActor. I take it there\'s no way of testing an UntypedActor through say Junit? Akka docs are getting开发者_开发技巧 bet[详细]
2023-03-05 11:14 分类:问答Subsequent Call to Actor Freezes Program
I put together the code below; the intent was to have a non-blocking server accept a connection and then pass off this connection to an actor for further processing. This works the first time through,[详细]
2023-03-04 18:02 分类:问答Is it possible to get a StackOverflow error with event-driven recursive actors at all?
As it\'s said in the comments, Combinatiors.loop of the standard actors library is intended to save you from stack overflows, when the body of an actor is repeatedly executed.[详细]
2023-03-03 16:08 分类:问答How can I use a TypedActor in a Java application?
I try to implement a TypedActor in Java following the examples on Typed Actors (Java). But I\'m struggling. I have added akka-actor-1.1-M1.jar, akka-typed-actor-1.1-M1.jar, scala-library.jar but it wa[详细]
2023-03-01 17:40 分类:问答how to cleanup my dead actor in Scala
Hi I am using scala(2.8.1) to implement a time-consuming task handler using actor, however, I am not able to clean it up when running my unit tests, so my unit tests hung forever.[详细]
2023-03-01 12:01 分类:问答Scala maintaining state in actors without var
In another language, I have had something call itself with the new state to maintain it but I don\'t see how to do that with scala actors. Something like this is how I would envision this:[详细]
2023-03-01 08:10 分类:问答Scala stateful actor, recursive calling faster than using vars?
Sample code below. I\'m a little curious why MyActor is faster than MyActor2. MyActor recursively calls process/react and keeps state in the function parameters whereas MyActor2 keeps state in vars. M[详细]
2023-03-01 05:28 分类:问答when is actor not appropriate?
I use actors whenever I need to run two threads concurrently. I don\'t ever use threads explicitly. someone told me that act开发者_开发技巧ors are quite heavy and it is not always a good idea to use[详细]
2023-03-01 05:12 分类:问答How to catch an exception within loop/react of an actor?
Is it possible to catch an exception raised within behaviour? Where to place the try/catch? I know that react uses exceptions to开发者_开发问答 reuse the same thread for different actors and that´s w[详细]
2023-03-01 03:53 分类:问答