call

suspend fun call(event: T)

Execute this event handler, given an event.

This function takes an event of type T and executes the event handler body, assuming all checks pass.

If an exception is thrown by the event handler body, it is caught and a traceback is printed.

Parameters

event

The given event object.