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

Perl::Critic::Policy::Community::Threads - Interpreter-based threads are officially discouraged

Affiliation

       This policy is part of Perl::Critic::Community.

Author

       Dan Book, "dbook@cpan.org"

Configuration

       This policy is not configurable except for the standard options.

Description

       Perl interpreter threads are officially discouraged. They were created to emulate fork() in Windows
       environments, and are not fast or lightweight as one may expect. Non-blocking code or I/O can be easily
       parallelized by using an event loop such as POE, IO::Async, or Mojo::IOLoop. Blocking code is usually
       better parallelized by forking, which on Unix-like systems is fast and efficient. Modules such as forks
       and Parallel::Prefork can make forking easier to work with, as well as forking modules for event loops
       such as POE::Wheel::Run, IO::Async::Process, or "subprocess" in Mojo::IOLoop.

Name

       Perl::Critic::Policy::Community::Threads - Interpreter-based threads are officially discouraged

See Also

       Perl::Critic

perl v5.40.1                                       2025-03-22             Perl::Critic::P...munity::Threads(3pm)

See Also