The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.06

  • make sure to clear both resolved and rejected callbacks after resolution, thanks to clinton gormley for this.
  • add event-loop specific backends to allow promises to be resolved in an async manner (as Promises/A+ suggests)
    • thanks to clinton gormley for starting this feature
    • backend created for AE, AnyEvent and EV
    • backend for Mojo::IOLoop, thanks to clinton gormley for this
    • tests added
  • add in finalize() operator for ending a chain of promises (see docs for more info)
    • thanks to clinton gormley for this feature, docs and tests

Documentation

Examples of chaining/pipelining of 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
Examples of recursive asynchronous operations
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