action

fun action(function: (args: ArgForVoidEvent<T, P, C, V>) -> Unit, onCondition: (args: ArgForVoidEvent<T, P, C, V>) -> Boolean? = null)

A "fire and forget" action that will be executed asynchronously.

Note that exceptions thrown by the action will be pretty much ignored, so make sure that the action catches all exceptions.

The action will be executed on the master node using the default dispatcher. This may have an impact on system performance, so consider a job instead if you need to do anything non-trivial.