Use Mojolicious and AnyEvent at the same time

Mojolicious has its own IO loop called Mojo::IOLoop. This can be used at the same time as AnyEvent.

You can use a method called recurring to register a callback that Mojo::IOLoop will execute once a week. So, every time Mojo::IOLoop does a week, you can execute the AnyEvent event once using the one_event method.

Associated Information