ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent.pm (file contents):
Revision 1.118 by root, Sun May 11 18:08:36 2008 UTC vs.
Revision 1.119 by root, Sat May 17 19:39:33 2008 UTC

730 1 730 1
731 } else { 731 } else {
732 push @post_detect, $cb; 732 push @post_detect, $cb;
733 733
734 defined wantarray 734 defined wantarray
735 ? bless \$cb, "AnyEvent::Util::Guard" 735 ? bless \$cb, "AnyEvent::Util::PostDetect"
736 : () 736 : ()
737 } 737 }
738} 738}
739 739
740sub AnyEvent::Util::Guard::DESTROY { 740sub AnyEvent::Util::PostDetect::DESTROY {
741 @post_detect = grep $_ != ${$_[0]}, @post_detect; 741 @post_detect = grep $_ != ${$_[0]}, @post_detect;
742} 742}
743 743
744sub detect() { 744sub detect() {
745 unless ($MODEL) { 745 unless ($MODEL) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines