Feature request: early exit for sync implementation #225
Labels
Type: Enhancement
Type: Need More Upvotes
The functionality is useful, but it is unclear how much it is in demand. Vote.
Currently it is not possible to stop a sync glob task. Let's say I run a glob to see if any file exists (similar to
Array.some()
) then I currently have to do:but it means that I still create the result. Ideally I would be able to:
where
.sync
would exit once it has foundmaxMatches
matches.The text was updated successfully, but these errors were encountered: