Mixin::...tch::Bus(3)
πΈ NAME πΈ
okay so you're on the Mixin::...tch::Bus(3) page β yes bestie, that's the manual name, and this is the User Contributed Perl Documentation vibe. The actual module is Mixin::Event::Dispatch::Bus, and it is literally a message bus. no cap. π
β¨ VERSION β¨
version 2.000 β that's the version, periodt. π
π¦ SYNOPSIS π¦
here's the whole idea in code, and yes you can copy it exactly:
{
package Some::Class;
sub bus { shift->{bus} ||= Mixin::Event::Dispatch::Bus->new }
}
my $obj = bless {}, 'Some::Class';
$obj->bus->subscribe_to_event(
something => sub { my ($ev) = @_; warn "something!" }
);
$obj->bus->invoke_event('something');
π DESCRIPTION π
This class uses Mixin::Event::Dispatch to provide a message bus β instantiate this and call the usual methods to deal with events, bestie:
subscribe_to_eventinMixin::Event::Dispatchinvoke_eventinMixin::Event::Dispatch
This allows several classes to share a common message bus, or to avoid polluting a class with event-related methods. it's giving shared-group-chat energy, but for events. π«Ά
π AUTHOR π
Tom Molesworth <cpan@perlsite.co.uk> β iconic author behavior, fr fr. π
π₯ LICENSE π₯
Copyright Tom Molesworth 2014. Licensed under the same terms as Perl itself. slay. π
and that's the whole page, bestie π β the sign-off says source/version perl v5.42.2, dated 2026-02-15, and the manual is Mixin::...tch::Bus(3). π¦β¨
π¦ where this page comes from
- alpine 3.24: perl-mixin-event-dispatch-doc 2.000-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms