Login
From:
jacobtomlinson.dev
(Uncensored)
subscribe
Golang block until interrupt with ctrl+c - Jacob Tomlinson
https://jacobtomlinson.dev/posts/2022/golang-block-until-interrupt-with-ctrl-c/
links
backlinks
Roast topics
Find topics
Find it!
Today I found myself needing a Go application’s main thread to stop and wait until the user wants it to exit with a ctrl+c keyboard interrupt.