There was an extension done for Java in 2005 that made async Java quite
nice;
http://en.wikipedia.org/wiki/Join_Java
The Join Java extension introduces three new language constructs:
- Join methods
- Asynchronous methods
- Order class modifiers for determining the order that patterns are
matched
... Join calculus ... has explicit synchronization based on a localized
conjunction of events defined as reduction rules. Join semantics try to
provide explicit expressions of synchronization without breaching the
object-oriented idea of modularization, including dynamic creation and
destruction of processes and channels.
class JoinExample {
int fragment1() & fragment2(int x) {
//will return value of x
//to caller of fragment1
return x;
}
}
PS. this came out of the same lab that Odersky did Pizza (
http://pizzacompiler.sourceforge.net), that became Generic Java, that became
generics in Java (but don't hold that against it)
/derek
On 9 November 2010 10:41, RogerV <[email protected]> wrote:
> Yet another language evolution area where Microsoft's C#/VB languages
> for .NET are racing on ahead to provide a solution within the language
> itself. While Java, in the meantime, hasn't even managed to catch up
> with them on the closures/lambdas feature.
>
> new await and async keywords
>
> Asynchronous Programming for C# and Visual Basic
> http://msdn.microsoft.com/en-us/vstudio/async.aspx
>
>
>
> I still like the Go language approach to async programming better,
> though, than this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" 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/javaposse?hl=en.