use IO::Async::Loop; ..... our $loop = IO::Async::Loop->new; $loop->add( IO::Async::Timer::Periodic->new( # This will call the main operational code of Muda: interval => 1, notifier_name => 'MAIN', on_tick => \&mainMudaTick )->start ); ..... $loop->run;