StreamExtensions<T> extension

on

Methods

firstNextElementWith(bool toTest(T)) Future<T>

Available on Stream<T>, provided by the StreamExtensions extension

Wait for a stream to emit a element accepted by the bool function "toTest" Return the first element validated by "toTest"