Proper use of Arbiters
I am reading through CH2 of the book, and I want to make sure I understand the use of Iterators and Arbiters:
1) If you want to call yeild return to suspend a thread from operation until a message is received, you need to place this call in an iterator wrapped function and declare an Arbiter.Receive as non-persistent. Then a delegate (or handler) is called upon reception and the receiver is destroyed.
2) Otherwise, if you want to always allow a receiver to exist, you can call it from a regular (i.e non-iterator wrapped function) using the Activate call (and assume the receiver is declared persistent), and this will allocate a seperate thread to handle the received messages.
Please let me know if I am understanding this correctly...