scope

fun scope(block: (T) -> Boolean): EventScope<T>

Adds a condition to the scope.

Return

The updated EventScope instance.

Parameters

block

The condition to apply to the event.