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

MCE::Channel::Simple - Channel tuned for one producer and one consumer

Author

       Mario E. Roy, <marioeroy AT gmail DOT com>

perl v5.40.0                                       2025-01-11                          MCE::Channel::Simple(3pm)

Description

       A channel class providing queue-like and two-way communication for one process or thread on either end;
       no locking needed.

       The API is described in MCE::Channel.

       new
           use MCE::Channel;

           my $chnl = MCE::Channel->new( impl => 'Simple' );

Name

       MCE::Channel::Simple - Channel tuned for one producer and one consumer

Queue-Like Behavior

       enqueue
       dequeue
       dequeue_nb
       end

Two-Way Ipc - Consumer To Producer

       send2
       recv2
       recv2_nb

Two-Way Ipc - Producer To Consumer

       send
       recv
       recv_nb

Version

       This document describes MCE::Channel::Simple version 1.901

See Also