(Quick Reference)

2.6 What's New - Reference Documentation

Authors: The Whole GPars Gang

Version: 1.0-SNAPSHOT

2.6 What's New

Again, the new release, this time GPars 0.12, introduces a lot of gradual enhancements and improvements on top of the previous release.

Check out the JIRA release notes

Project changes

See the Breaking Changes listing for the list of breaking changes.

Asynchronous functions

  • Allowed for delayed and explicit thread pool assignment strategies for asynchronous functions
  • Performance tuning to the asynchronous closure invocation mechanism

Parallel collections

  • Added a couple of new parallel collection processing methods to keep up with the innovation pace in Groovy
  • Merged the extra166y library into GPars

Fork / Join

Actors

  • StaticDispatchActor has been added to provide easier to create and better performing alternative to DynamicDispatchActor
  • A new method sendAndPromise has been added to actors to send a message and get a promise for the future actor's reply

Dataflow

  • Operator and selector speed-up
  • Kanban-style dataflow operator management has been added
  • Chaining of Promises using the new then() method
  • Added a DSL for easy operator pipe-lining
  • Lifecycle events for operators and selectors were added
  • Added support for custom error handlers
  • Polished the way operators can be stopped
  • Added synchronous dataflow variables and channels
  • Read channels can report their length

Agent

Stm

Other

  • Removed deprecated classes and methods
  • Added numerous code examples and demos
  • Enhanced project documentation
  • Re-styled the user guide

Renaming hints

  • The makeTransparent() method that forces concurrent semantics to iteration methods (each, collect, find, etc.) has been removed
  • The stop() method on dataflow operators and selectors has been renamed to terminate() to match naming used for actor
  • The reportError() method on dataflow operators and selectors has been replaced with the addErrorHandler() method
  • The RightShift (>>) operator of DataflowVariables and channels now calls then() instead of whenBound() and so can be chained