appyx
appyx copied to clipboard
Issue #296 Dispose NodeConnector intake in onDestroy
Description
Closes #296
Check list
- [x] I have updated
CHANGELOG.md
if required. - [x] I have updated documentation if required.
Honestly do not think it is an error. Both source and subscriber are managed by us, they should be GCed together as soon as everybody unsubscribed from node.
But not against PR, makes sense.
@CherryPerry the garbage collector is not deterministic, so if we don't unsubscribe in a deterministic manner, users may get unexpected behaviours (depending on whether they are still sending events after a node is destroyed.