On Sun, Nov 15, 2009 at 10:29 PM, braver <[email protected]> wrote:
>
> I have a simple question on migrating a typical PinS-desribed pattern:
>
> def act() =
> loop {
> react {
> case DoSomething => ...
> case EXIT => exit()
> }
> }
>
> -- now, without exit(), how does it terminate?
>
Like any other object in the JVM... when the last reference to the Lift
Actor is gone, the Lift Actor is garbage collected. Lift Actors (like JVM
objects) don't have a concept of "running". They will always respond to
messages sent to them. They consume no system resources other than memory
except when they are processing a message, then they will consume a thread
out of the thread pool.
>
> Cheers,
> Alexy
>
> >
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---