Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.