Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

GPars provides several ways to run tasks in the background asynchronously.

Usage of Asynchronous functions

Closures enhancements

Groovy provides a lot of the infrastructure enabling efficient functional style of programming. Closures can be stored in variables, passed around as parameters and return values, composed, memoized, trampolined or applied partially. GPars adds asynchronicity to the mix. Closures can now be either synchronous or asynchronous, or, may you wish so, even both at the same time. You can mix synchronous and asynchronous closures in a single calculation without restrictions.

Examples:

For more details on the Asynchronous computations please visit the Asynchronous Invocation section of the User Guide .

  • No labels