Skip to end of metadata
Go to start of metadata

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.


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

  • No labels