Add a hook to be executed after the event's action when the event is triggered.
A hook whose callback will be executed.
A callback which deletes the added hook.
Add a hook to be executed before the event's action when the event is triggered.
Runs all hooks of a specific event of the given event type.
The data which the callback of each hook has access to.
The action to perform.
A promise of type R.
Add a hook to be executed after the event's action when the event is triggered.