Ready Steady GO: Dispatcher-Worker with errgroup
February 14, 2021 | 2 min readA golang implementation of dispatcher-worker pattern with errgroup. It immediately cancels the other jobs when an error occurs in any goroutine.
Under the sea, in the hippocampus's garden...
A golang implementation of dispatcher-worker pattern with errgroup. It immediately cancels the other jobs when an error occurs in any goroutine.
This is a golang sample code that calls some function periodically for a specified amount of time.