aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Mixin-Event-Dispatch/pkg-descr
blob: c69d31e3242531f0b2cc7148f718ab9b1ed3b510 (plain) (blame)
1
2
3
4
5
6
7
8
Add Mixin::Event::Dispatch in as a parent to your class, and it'll provide some
methods for defining event handlers ("subscribe_to_event" or
"add_handler_for_event") and calling them ("invoke_event").

Note that handlers should return 0 for a one-off handler, and 1 if it should be
called again on the next event.

WWW: https://metacpan.org/release/Mixin-Event-Dispatch