Group
Extension

Matches 1

Async-Event-Interval ( S/ST/STEVEB/Async-Event-Interval-1.13.tar.gz, STEVEB, 2024; MetaCPAN )
Async-Event-Interval/lib/Async/Event/Interval.pm ( view source; MetaCPAN )
aster&service=github' alt='Coverage Status' /></a>


=head1 SYNOPSIS

A simple event that updates JSON data from a website using a shared scalar
variable, while allowing the main application to contin
 = Async::Event::Interval->new(2, \&callback);

    my $json = $event->shared_scalar;

    $event->start;

    while (1) {
        print "$$json\n";

        #... do other things

        $event->rest
art if $event->error;
    }

    sub callback {
        $$json = ...; # Fetch JSON from website
    }

=head1 DESCRIPTION

Very basic implementation of asynchronous events triggered by a timed interva

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.