Skip Menu |

This queue is for tickets about the POE CPAN distribution.

Report information
The Basics
Id: 48670
Status: resolved
Priority: 0/
Queue: POE

People
Owner: Nobody in particular
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Add ->weaken support to postback and callbacks
Forced reference counting in postback and callback objects makes it very difficult to build applications where callback messages are considered to only be advisory (and the parent is expected to shutdown at any time). It also makes it very difficult to build large applications which have their own heirachies of control and structure, and wish to start and stop sessions repeatedly without the need to also continuously destroy and recreate the same postback handles over and over again. To deal with these situations, we should provide a mechanism to explicitly weaken a postback or callback object. The simplest and most back-compatible way to do this would be to allow something like $_[SESSION]->postback('event')->weaken.
Initial weaken() support committed in revision 2630. Thanks!