When Go programs end

When Go programs end

Update: 2021-02-04
Share

Description

Michael Knyszek from the Go team joins us to talk about what happens when a program ends. How are file handles cleaned up? When are deferred functions run, and when are they skipped entirely? Is there a way to terminate all running goroutines? Tune in to learn the answers to these questions and more!



Discuss on Changelog News



Join Changelog++ to support our work, get closer to the metal, and make the ads disappear!



Sponsors






  • Teleport – Quickly access any resource anywhere using a Unified Access Plane that consolidates access controls and auditing across all environments - infrastructure, applications, and data. Try Teleport today in the cloud, self-hosted, or open source at goteleport.com




  • LaunchDarkly – Test in production! Deploy code at any time, even if a feature isn’t ready to be released to your users. Wrap code in feature flags to get the safety to test new features and infrastructure in prod without impacting the wrong end users.




  • Equinix Metal – Globally interconnected fully automated bare metal. Equinix Metal gives you hardware at your fingertips with physical infrastructure at software speed. This is the promise of the cloud delivered on Bare Metal. Get $500 in free credit to play with plus a rad t-shirt at info.equinixmetal.com/changelog.









Featuring






Notes and Links


Comments 
In Channel
How to make mistakes in Go

How to make mistakes in Go

2021-07-2901:03:01

SIV and the V2+ issue

SIV and the V2+ issue

2021-07-1501:20:12

Pop quiz time! 😱

Pop quiz time! 😱

2021-07-0101:02:52

Giving TDD a Go

Giving TDD a Go

2021-06-2401:09:41

All about Porter

All about Porter

2021-06-1701:10:04

Go Battlesnake Go!

Go Battlesnake Go!

2021-06-0301:09:35

Building for Ethereum in Go

Building for Ethereum in Go

2021-05-2701:03:36

Event-driven systems

Event-driven systems

2021-05-1301:11:04

Building startups with Go

Building startups with Go

2021-04-2901:10:30

TCP & UDP

TCP & UDP

2021-04-2201:06:40

Design philosophy

Design philosophy

2021-03-2501:25:35

go:embed

go:embed

2021-03-1801:05:11

loading
Download from Google Play
Download from App Store
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

When Go programs end

When Go programs end

Changelog Media