android-components / mozilla.components.support.base.observer / Consumable / consumeBy

consumeBy

@Synchronized fun consumeBy(consumers: List<(T) -> Boolean>): Boolean (source)

Invokes the given list of lambdas and marks the value as consumed if at least one lambda returns true.