The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Changes for version 0.08

  • !! Thanks to clinton gormley for all these !! changes. Please take note of the backcompat !! breaking change for finalize().
  • then() callbacks are now wrapped in an eval block to prevent fatal exceptions and to ensure that rejected promises are propagated correctly
  • renamed finalize() to done()
  • added catch() sugar which takes just an error handler
  • added finally() handler which will always be called, regardles of whether the promise is resolved or rejected, much like try/catch/finally

Documentation

Examples of chaining/pipelining of asynchronous operations
Examples of recursive asynchronous operations
A comparison of Scala Futures with Promises
A breakdown of the SYNOPSIS section of Promises
Counter examples to Promises

Modules

An implementation of Promises in Perl
An implementation of Promises in Perl
An implementation of Promises in Perl
An implementation of Promises in Perl
An implementation of Promises in Perl
An implementation of Promises in Perl
An implementation of Promises in Perl