addEventAsync

abstract fun addEventAsync(event: Event)

Asynchronously adds an event to the log.

This calls addEvent in a CoroutineScope passed to EventLogger implementation at construction time. This is useful for time-sensitive code (e.g. presentment) which do not want to wait until the event has been processed or written to persistent storage.

Parameters

event

The Event to be recorded.