denyWithResult

open fun denyWithResult(result: T)

Denies this event from occur, and sets the result to the given result.

This is a shortcut for calling deny and setting the EventWithResult.result manually.

Parameters

result

the result to set