Apocrypha

Beam-Emitter

Role for event emitting classes

This role is used by classes that want to add callback hooks to allow users to add new behaviors to their objects. These hooks are called "events". A subscriber registers a callback for an event using the "subscribe" or "on" methods. Then, the class can call those callbacks by emitting an event with the emit() method. Using the Beam::Event class, subscribers can stop an event from being processed, or prevent the default action from happening.

Available in

OverlayNewestEbuildsLast activity
ledgersmb GitHub ↗ 1.7.0 1 2 yr details ›

Versions & arches

VersionOverlay amd64 Committed
1.7.0 ledgersmb amd64 testing view · download · history ↗