AnyEvent-ForkObject
view release on metacpan or search on metacpan
diag explain \@_;
$dont_call_if_destroyed = 0;
});
kill KILL => $obj2->{pid};
undef $obj2;
my $timeout; $timeout = AE::timer 1, 0 => sub { undef $timeout; $cv->send };
$cv->recv;
ok $dont_call_if_destroyed, "Don't touch callbacks if destroyed";
ok $timeout, "Timeout wasn't reached";
}
package FO_Test;
sub new
{
bless { val => $_[1] } => __PACKAGE__;
}
( run in 0.751 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )