emit abstract method

Future emit(
  1. String eventName, {
  2. Future action(
    1. HHCtxI ctx
    )?,
  3. bool handleCtrlException = false,
})

Emits an event, executing all registered hooks for that event.

Implementation

Future<dynamic> emit(
  String eventName, {
  Future<dynamic> Function(HHCtxI ctx)? action,
  bool handleCtrlException = false,
});