logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

"IO::Async::Loop::Mojo" - use "IO::Async" with "Mojolicious"

Author

       Paul Evans <leonerd@leonerd.org.uk>

perl v5.38.2                                       2024-02-25                         IO::Async::Loop::Mojo(3pm)

Constructor

new
          $loop = IO::Async::Loop::Mojo->new()

       This function returns a new instance of a "IO::Async::Loop::Mojo" object. It takes no special arguments.

Description

       This subclass of IO::Async::Loop uses Mojo::Reactor to perform its IO operations. It allows the use of
       IO::Async-based code or modules from within a Mojolicious application.

Methods

       There are no special methods in this subclass, other than those provided by the "IO::Async::Loop" base
       class.

Name

       "IO::Async::Loop::Mojo" - use "IO::Async" with "Mojolicious"

Synopsis

          use IO::Async::Loop::Mojo;

          my $loop = IO::Async::Loop::Mojo->new();

          $loop->add( ... );

          ...
          # Rest of Mojolicious code here

See Also