Filters the execution of the reaction based on the provided predicate function, which determines whether the reaction should be executed or the provided default outcome should be returned instead.
Filters the execution of the reaction based on the provided predicate function, which determines whether the reaction should be executed or the provided default outcome should be returned instead.
Value parameters
predicate
a function that evaluates to true if the reaction should be executed
Attributes
Returns
a new EventReaction that only runs if the predicate condition is satisfied.