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