Yo-An Lin (林佑安) > AnyEvent-Cron-0.03 > AnyEvent::Cron

Download:
AnyEvent-Cron-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

AnyEvent::Cron - Crontab in AnyEvent! provide an interface to register event on specified time.

SYNOPSIS ^

    my $cron = AnyEvent::Cron->new( 
            verbose => 1,
            debug => 1,
            ignore_floating => 1
    );

                # 00:00 (hour:minute)
    $cron->add("00:00" => sub { warn "zero"; })
        ->add( '* * * * *' => sub {  } )
        ->add( '1 seconds' => sub {  } )
        ->add( '3 days' => sub {  } )
        ->run();

    my $cv = AnyEvent->condvar;
    $cv->recv;

METHODS ^

add( "12:36" => sub { } )

add( DateTime->now => sub { } )

AUTHOR ^

Cornelius, <cornelius.howl_at_gmail.com>

BUGS ^

Please report any bugs or feature requests to bug-anyevent-cron at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-Cron. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc AnyEvent::Cron

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2010 Cornelius.

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.

syntax highlighting: