Adding migration docs for new Agents
This commit is contained in:
parent
791bbd1565
commit
a70db6a141
3 changed files with 42 additions and 6 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue