action

fun action(action: suspend EventContext<T>.() -> Unit)

Define what will happen when your event handler is invoked.

Parameters

action

The body of your event handler, which will be executed when it is invoked.