Advanced go - Make synchronous code asynchronous with context.Context and channels
Go standard library comes with a nice little structure that allows to stop long-running goroutines, when theirs result is not needed anymore: context.Context.
If any of the call you are making, has the potential to block for a long amount of time, it...
pauldigian.com3 min read