AnyEvent-CallbackStack
view release on metacpan or search on metacpan
lib/AnyEvent/CallbackStack.pm view on Meta::CPAN
sub cbq {
my $self = shift;
push @{$self->{'cbq'}}, @_ if @_;
return @{$self->{'cbq'}};
}
=head2 current_step
Experimental.
'Current Step Counter' Getter/Setter.
Don't use this directly unless you really know what you're doing.
my $curr_step = $cs->current_step;
$cs->current_step( 0 );
=cut
sub current_step {
my $self = shift;
$self->{'current_step'} = $_[0] if $_[0];
return $self->{'current_step'};
}
=head1 SHORTCUT AE::CS API
Inspired by AE.
Starting with version 0.05, AnyEvent::CallbackStack officially supports a second, much
simpler in name, API that is designed to reduce the typing.
There is No Magic like what AE has on reducing calling and memory overhead.
See the L<AE::CS> manpage for details.
my $cs = AE::CS;
=cut
package AE::CS;
our $VERSION = $AnyEvent::CallbackStack::VERSION;
sub _reset() {
eval q{ # poor man's autoloading {}
*AE::CS = sub {
AnyEvent::CallbackStack->new
};
};
die if $@;
}
BEGIN { _reset }
=head1 AUTHOR
BlueT - Matthew Lien - ç·´åæ, C<< <BlueT at BlueT.org> >>
=head1 BUGS
Please report any bugs or feature requests to C<bug-anyevent-callbackstack at rt.cpan.org>, or through
the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-CallbackStack>. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc AnyEvent::CallbackStack
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=AnyEvent-CallbackStack>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/AnyEvent-CallbackStack>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/AnyEvent-CallbackStack>
=item * Search CPAN
L<http://search.cpan.org/dist/AnyEvent-CallbackStack/>
=item * Launchpad
L<https://launchpad.net/p5-anyevent-callbackstack>
=item * GitHub
L<https://github.com/BlueT/AnyEvent-CallbackStack>
=back
=head1 ACKNOWLEDGEMENTS
=head1 LICENSE AND COPYRIGHT
Copyright 2012 BlueT - Matthew Lien - ç·´åæ.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
=cut
1; # End of AnyEvent::CallbackStack
( run in 2.147 seconds using v1.01-cache-2.11-cpan-d7f47b0818f )