findAllEffects

inline fun <T : Transmission.Effect> findAllEffects(predicate: (T) -> Boolean): List<T>

Finds all effect transmissions of the specified type that match the predicate.

Return

List of all matching effect transmissions

Example:

val errorEffects = findAllEffects<ErrorEffect> { it.severity == ErrorSeverity.HIGH }
assertTrue(errorEffects.isNotEmpty())

Parameters

T

The type of effect to search for

predicate

Function to test each effect transmission