at:tutorial:actors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
at:tutorial:actors [2009/09/30 13:31] – added tvcutsem | at:tutorial:actors [2020/02/05 21:17] – moving elisag | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
====== Concurrent Programming with Actors ====== | ====== Concurrent Programming with Actors ====== | ||
Line 191: | Line 190: | ||
def sum := calculator< | def sum := calculator< | ||
</ | </ | ||
+ | |||
==== Enabling futures ==== | ==== Enabling futures ==== | ||
Line 203: | Line 203: | ||
</ | </ | ||
- | The first statement imports the futures module into the current lexical scope. This enables you as a developer to use some additional language constructs exported by the futures module, as will be explained later. The second statement enables the futures behaviour, causing any asynchronous message send to return a future rather than '' | + | The first statement imports the futures module into the current lexical scope. This enables you as a developer to use some additional language constructs exported by the futures module, as will be explained later. The second statement enables the futures behaviour, causing any asynchronous message send to return a future rather than '' |
- | + | ||
- | More information pertaining to the API of the futures language module can be found in the [[: | + | |
==== Working with Unresolved Futures ==== | ==== Working with Unresolved Futures ==== | ||
Line 308: | Line 306: | ||
As previously explained, there are two modes for enabling futures in AmbientTalk. Invoking '' | As previously explained, there are two modes for enabling futures in AmbientTalk. Invoking '' | ||
- | When a message send is annotated with the '' | + | When a message send is annotated with the '' |
< | < | ||
- | o<-m()@OneWayMessage | + | o<-m()@OneWay |
</ | </ | ||
- | When a message send is annotated with the '' | + | When a message send is annotated with the '' |
< | < | ||
- | o<-m()@FutureMessage | + | o<-m()@TwoWay |
</ | </ | ||
- | When a message send is annotated with the '' | + | When a message send is annotated with the '' |
< | < |
at/tutorial/actors.txt · Last modified: 2020/02/05 21:26 by elisag