EventFunction<R> typedef

EventFunction<R> = void Function(R data)

Type definition for synchronous event listener functions.

These functions are called immediately when an event is emitted and should complete quickly to avoid blocking the event emission process.

Implementation

typedef EventFunction<R> = void Function(R data);