justforfunc #9: The Context Package
Video Statistics and Information
Channel: justforfunc: Programming in Go
Views: 129,654
Rating: undefined out of 5
Keywords: golang, justforfunc, context, tutorial, programming, coding
Id: LSzR0VEraWw
Channel Id: undefined
Length: 36min 27sec (2187 seconds)
Published: Fri Mar 31 2017
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Thanks /u/campoy for this helpful tutorial! It's actually very timely since I'm at the point now of building an HTTP server where I would like to clean up all the resources when a request is cancelled.
I learned how contexts are used in general because it can be very confusing to think in concurrency when using Go, which you were able to clarify. You explained how the "tree" structure of contexts, which was the trick to understanding it. Previously, I was very confused with the point of a background was but it's in fact very simple.
But the most important and useful trick was how to use the select statement to immediately to free up resources across goroutines, very helpful!
I hope you continue to create more videos like these. I like to believe your motivation for choosing such a topic is that you have a good feel of what people are struggling with when it's pretty simple, and even very powerful - such as the impression of the context package. Thanks!
Thanks! I enjoyed it and learned something.
Thank you! Very informative and enjoyable as always!