Skip Menu |

This queue is for tickets about the CPS CPAN distribution.

Report information
The Basics
Id: 78432
Status: resolved
Priority: 0/
Queue: CPS

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.15
Fixed in: 0.16



Subject: Make CPS::Future callable
Rather than foo( on_done => sub { $future->done( @_ ) } ); it would be nice if you could simply foo( on_done => $future ); Also relatedly, check that sub{}-taking CPS::Future methods themselves also accept Futures. Consider carefully how to handle on_fail, and on_ready failures. [as a special case, to allow one future failing to make another complete, the user would have to explicitly spell it out $f1->on_fail( sub { $f2->done( @_ ) } ); -- Paul Evans
Fixed and uploaded to CPAN as 0.16. -- Paul Evans