Hi all,
I just released go-exit. The library helps to end the go routines in your program and collects potential errors.
Feedback is very welcome.
Cheers,
Philipp
Hi all,
I just released go-exit. The library helps to end the go routines in your program and collects potential errors.
Feedback is very welcome.
Cheers,
Philipp
Good job! Just a couple remarks:
Thanks for the feedback!
Yes, I have made some basic internal package in one project were I needed some cleanup on exit (remove some UNIX sockets).
I would consider a much more robust implementation and your package is 1 cm from solving this problem.
Should not be a big change. I’ll look into this, next time I work on the lib.
Hey Giulio,
I’ve done some refactoring and added some callbacks too. See the godoc for details.
Cheers
Many use context.Context for gorountine lifetime management, it is a sort of a standard. Please compare your package to context.Context
Well, lifetime management is one half. I need also to collect potential errors from the goroutines. But context.Context is a really useful library. Use it, if it solves your problem.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.