logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Kephra::API::EventTable - API to internal events

Description

       Every routine can subscribe a callback to any event that will than triggered when that event takes place.
       Also extensions (plugins) can do that.  Event ID can also be triggered to simulate application events.
       Some function do freeze events to speed up certain repeating actions (don't forget to thaw after that).
       Callbacks can also sanely removed, if no longer needed.

       Names of Events contain dots as separator of of namespaces.

List Of All Events

       •   menu.open

       •   editpanel.focus

       •   document.text.select

       •   document.text.change

       •   document.savepoint

       •   document.list

       •   caret.move

       •   app.close

perl v5.36.0                                       2023-03-08                            Kephra::EventTable(3pm)

Name

       Kephra::API::EventTable - API to internal events

Specification

add_call
       •   EvenID

       •   CallbackID

           for removing that callback. Must be unique in for this event.

       •   Callback

           a Coderef.

       •   Owner

           for removing all callbacks of that owner.

See Also