- Update the Subscribe and SubscribeFrom methods to return a cancel function, ensuring proper resource cleanup when subscriptions are no longer needed. - Modify unsubscribe logic to close channels safely, preventing potential panics from sending on closed channels. - Enhance test cases to utilize the new cancel functionality, ensuring robust handling of subscriptions in various scenarios. |
||
|---|---|---|
| .. | ||
| driver.go | ||
| events.go | ||
| interfaces.go | ||
| types.go | ||