Clinic: forEachAsync checks unfiltered elements #32
closed
@chrismichaelps wrote on 2026-09-28
Observed while smoke-testing 0.1.0 in a scratch project: Async.forEachAsync(\"tags\", select, test, ...) run over [\"skip\", \"x\", \"longer\"] reported 2 failures where 1 was expected.
Reproduction: predicate rejects \"skip\" and short tags; validate and count errors.
Analysis: correct behavior, not a defect. forEachAsync has no keep-filter by design; every element is checked, so both \"skip\" and \"x\" fail. Element filtering is forEachWhereAsync territory, which reported the expected single failure. The clinic expectation was wrong. No code change needed.
Read and reply on GitHub ↗1 comment continue on GitHub.
