go-systemd
go-systemd copied to clipboard
subscription: Added context cancellation and sync to subscription set
Now it is possible to cancel unit subsciptions with context which eliminates existing goroutine leak
Added synchronization primitive for SubscriptioSet, now it should it be possible to add new units to the set after executing SubscribeContext
Fixes: #474
Valid points
@kolyshkin Could you take a look? Sorry for bothering you again
@kolyshkin 🙏 🥺