An Effect that resolves with the first success value
Remarks
Behaves like Promise.any — all effects start concurrently and the
returned effect resolves as soon as any effect succeeds. The remaining
effects are aborted. If all effects fail, the error is an
AggregateError containing every rejection reason.
Example
import { fn, fail, succeed, run } from"mini-effect"; import { any } from"mini-effect/concurrency";
Runs all effects in parallel and resolves with the first successful result.