onEvent

@ObjCName(swiftName = "onEvent")
abstract suspend fun onEvent(event: MonitorEvent)

Called for every event emitted by the attached BackgroundTaskManager while the monitor is attached. Ordering matches the producer's emission order (best-effort per task id; see MonitorEvent).