emitAsync<T extends ModuleEvent> method

Future<void> emitAsync<T extends ModuleEvent>(
  1. T event
)

Emit an event asynchronously (non-blocking)

Implementation

Future<void> emitAsync<T extends ModuleEvent>(T event) async {
  await Future.microtask(() => emit(event));
}