Y
Hacker News
new
|
ask
|
show
|
jobs
by
mariusor
415 days ago
Haha, I had the exact same idea, though my API looks a bit less elegant. Maybe it's because it allows the caller to set-up multiple signals to handle and in which way to do it.
https://pkg.go.dev/git.sr.ht/~mariusor/wrapper#example-Regis...