Session

The internals of the context package

The context package is a crucial feature of the Go programming language that provides a convenient way to manage cancellations, timeouts, and request-scoped data across API boundaries.

In this talk, we will delve into the internal workings of the context package, examining the implementation of context types, the data structures used, and how it handles cancellations and deadlines to enable you to use it effectively in your applications and avoid common pitfalls and bad practices.

This will be an extended version of a talk I already gave a few times internally in companies (https://www.damianopetrungaro.com/talks/2020-context-package-in-go/) later on summarized as a blog post (https://www.damianopetrungaro.com/posts/go-internal-context-package/).

Accepted at GopherconUK 2023.

Damiano Petrungaro

Staff Engineer and Engineering Manager @Odin

Milan, Italy

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top