MCE::Ch...:Simple(3)

πŸ’– NAME πŸ’–

MCE::Channel::Simple β€” a channel that's literally built different: tuned for one producer and one consumer, and that's it, that's the whole vibe πŸŽ€


✨ VERSION ✨

This doc is describing MCE::Channel::Simple version 1.902, no cap 🫢


🌸 DESCRIPTION 🌸

okay so picture this: a channel class that does queue-like communication and two-way communication, and it's serving exactly one process or thread on either end. That's it. One. Singular. Main character behavior πŸ‘‘

and the best part?? no locking needed πŸ’… not a single lock. she doesn't need one. she's just like that.

the whole API lives over in MCE::Channel, so go read that if you want the full tea πŸ“–

πŸ¦‹ new

use MCE::Channel;

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

that's how you spin one up bestie, impl => 'Simple' and you're sooo ready ✨


πŸ“ QUEUE-LIKE BEHAVIOR πŸ“

the queue girlies, in order:

  • enqueue
  • dequeue
  • dequeue_nb
  • end

🌈 TWO-WAY IPC - PRODUCER TO CONSUMER 🌈

producer ➑️ consumer, the classic pipeline, obsessed:

  • send
  • recv
  • recv_nb

🧚 TWO-WAY IPC - CONSUMER TO PRODUCER 🧚

and she talks BACK. consumer ➑️ producer, iconic:

  • send2
  • recv2
  • recv2_nb

πŸ‘‘ AUTHOR πŸ‘‘

Mario E. Roy, <marioeroy AT gmail DOT com> β€” thank you for your service king πŸ«‘πŸ’œ


and that's the whole page bestie πŸ’– this was MCE::Channel::Simple(3) from the User Contributed Perl Documentation, brought to you by perl v5.42.0 and dated 2025-09-10. slay, go forth and channel πŸ’…βœ¨

πŸ“¦ where this page comes from