android-components / mozilla.components.support.base.observer / ConsumableStream / consumeNextBy

# consumeNextBy

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

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

### Parameters

`consumers` - the lambdas accepting the next consumable value.

Return
true if the consumable was consumed, otherwise false.