Fetch concurrently and return the first error
Mid · practical lab · 30 min · runtime go
Brief
Fetch N items concurrently with errgroup.WithContext, cap concurrency, preserve input order, and return the first error after cancelling the rest.
3 progressive hints are available in the editor.
Public checks
- caps concurrent work — expected:
errgroup SetLimit or a semaphore