Go Time: Golang, Software Engineering cover image

How to make mistakes in Go

Go Time: Golang, Software Engineering

00:00

Can I Use Time After in a Safe Way?

The answer must be to create the channel outside. What's the answer? How do you avoid that? There are different solutions. One of them could be to use context.with timeout, but it would mean that in every iteration, I have to call that context. with timeout. It's not lightweight. Here, the most appropriate solution could be to using within the time package, the timer structure. So is it possible to use time after in a safe way then? Or should we just avoid it altogether?

Play episode from 41:14
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app