@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.
consumers
- the lambdas accepting the next consumable value.
Return
true if the consumable was consumed, otherwise false.