Yields the first element in an input iterable that satisfies an optional async predicate function.
If no predicate is provided, the first element in the iterable is yielded.
Returns
A function that accepts an input iterable and returns a new asynchronous iterable.
Yields the first element in an input iterable that satisfies an optional async predicate function. If no predicate is provided, the first element in the iterable is yielded.
Returns
A function that accepts an input iterable and returns a new asynchronous iterable.
Example