The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Continual::Process::Loop - base class for loop

DESCRIPTION

Base class for implementing loops.

METHODS

new(%attributes)

%attributes

instances

ArrayRef of instances - default is empty ([])

interval

interval of alive checking

default is 1sec

on_interval

CodeRef which is called each check interval

default is disabled

add($instance)

add $instance (instance of Continual::Process::Instance) to loop

run()

start this loop

LICENSE

Copyright (C) Avast Software.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Jan Seidl <seidl@avast.com>