Adding migration docs for new Agents

This commit is contained in:
Viktor Klang 2013-01-27 23:01:42 +01:00
parent 791bbd1565
commit a70db6a141
3 changed files with 42 additions and 6 deletions

View file

@ -100,10 +100,7 @@ See :ref:`futures-java` for more information on ``Futures``.
Transactional Agents
====================
If an Agent is used within an enclosing transaction, then it will participate in
If an Agent is used within an enclosing ``Scala STM transaction``, then it will participate in
that transaction. If you send to an Agent within a transaction then the dispatch
to the Agent will be held until that transaction commits, and discarded if the
transaction is aborted. Here's an example:
.. includecode:: code/docs/agent/AgentDocTest.java#transfer-example
:language: java
transaction is aborted.