EventAsyncFunction<R> typedef

EventAsyncFunction<R> = Future<void> Function(R data)

Type definition for asynchronous event listener functions.

These functions can perform async operations and are awaited during event emission, which means they can delay the completion of the database operation that triggered the event.

Implementation

typedef EventAsyncFunction<R> = Future<void> Function(R data);