The input item type.
Input array, or a promise that resolves to one.
Async predicate to evaluate.
Optionaloptions: DetectOptions<I>Configuration options including cancellation and concurrency.
A cancellable handle resolving to the matched item or undefined.
Finds the first item whose async predicate resolves to true. With concurrency > 1, it short-circuits scheduling new work after a match is found.
The input item type.
Input array, or a promise that resolves to one.
Async predicate to evaluate.
Optionaloptions: DetectOptions<I>Configuration options including cancellation and concurrency.
A cancellable handle resolving to the matched item or undefined.
Finds the first item whose async predicate resolves to true. With concurrency > 1, it short-circuits scheduling new work after a match is found.