Mojo::...lQueue(3pm)
hey bestie πΈ welcome to the Mojo::RabbitMQ::Client::LocalQueue page β it's a 3pm manual from User Contributed Perl Documentation, also known in the header as Mojo::...lQueue(3pm). it's giving callback queue realness, and we're keeping every detail, fr fr π
πΈ NAME πΈ
Mojo::RabbitMQ::Client::LocalQueue β callback queue. that's the name, that's the vibe, periodt π
β¨ SYNOPSIS β¨
use Mojo::RabbitMQ::Client::LocalQueue
my $queue = Mojo::RabbitMQ::Client::LocalQueue->new();
# Register callback when content appears
$queue->get(sub { say "got expected content: " . $_[0] });
# Push some content to consume
$queue->push("It Works!");
# This prints:
# got expected content: It Works!
okay so here's the little demo, bestie: you use it, make a $queue with ->new(), register a callback with ->get(...), push "It Works!" with ->push(...), and the callback prints got expected content: It Works! β iconic behavior π
π¦ DESCRIPTION π¦
Mojo::RabbitMQ::Client::LocalQueue is a queue for callbacks expecting some content to be received. literally that's the whole description β it's a queue for callbacks that are waiting on content to arrive, no cap π
π«Ά METHODS π«Ά
Mojo::RabbitMQ::Client::LocalQueue implements following methods:
π get π
$queue->get(sub { process_message($_[0]) })
Registers a callback which is executed when new message is pushed to queue. so you hand it a sub, and when a new message gets pushed onto the queue, that sub runs β callback main character energy β¨
π push π
$queue->push("Some content");
$queue->push({objects => 'are also welcome});
Pushes content to queue and also drains all declared callbacks. so it pushes the content in and drains all declared callbacks too, fr fr π₯
π SEE ALSO π
go check out Mojo::RabbitMQ::Client and Mojo::RabbitMQ::Client::Channel β they're right there in the SEE ALSO lineup, bestie π
π COPYRIGHT AND LICENSE π
Copyright (C) 2015-2017, Sebastian Podjasek and others
Based on AnyEvent::RabbitMQ::LocalQueue - Copyright (C) 2010 Masahito Ikuta, maintained by "bobtfish@bobtfish.net"
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
okay that's the whole page, bestie π β this one's from perl v5.42.0, dated 2019-08-25, and it's the Mojo::...lQueue(3pm) page. bye, slay, and hydrate π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojo-RabbitMQ-Client 0.3.1-bp160.1.4 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms