Async-Event-Interval

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

            "Event ID %d with PID %d ran %d times, with %d errors and an interval" .
            " of %.2f seconds\n",
            $event->id,
            $event->pid,
            $event->runs,
            $event->errors,
            $event->interval
        );
    }

    sub update {
        # Because each event runs in its own process, $$ will be set to the
        # process ID of the calling event, even though they both call this
        # same function

        $shared_data{$$}{called_count}++;
    }

# AUTHOR

Steve Bertrand, `<steveb at cpan.org>`

lib/Async/Event/Interval.pm  view on Meta::CPAN

            "Event ID %d with PID %d ran %d times, with %d errors and an interval" .
            " of %.2f seconds\n",
            $event->id,
            $event->pid,
            $event->runs,
            $event->errors,
            $event->interval
        );
    }

    sub update {
        # Because each event runs in its own process, $$ will be set to the
        # process ID of the calling event, even though they both call this
        # same function

        $shared_data{$$}{called_count}++;
    }

=head1 AUTHOR

Steve Bertrand, C<< <steveb at cpan.org> >>

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.710 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )