You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although it does not fit all use cases, it can be useful to have either a flag for the existing implementation, or a separate message bus implementation that uses weak references for subscribers could be useful. This would trade the bus being an owner for the subscribers being an owner of would allow subscribers to arbitrarily disappear and not have to be removed from the bus to be GCed.
It disallows:
// object would be GCed since no strong reference is being maintainedbus.RegisterSubscriber(newSubscriberObject());
However can be useful for select cases, provided:
It is not a default
The method of activating/deactivating the feature makes it clear what the ramifications are
The text was updated successfully, but these errors were encountered:
Although it does not fit all use cases, it can be useful to have either a flag for the existing implementation, or a separate message bus implementation that uses weak references for subscribers could be useful. This would trade the bus being an owner for the subscribers being an owner of would allow subscribers to arbitrarily disappear and not have to be removed from the bus to be GCed.
It disallows:
However can be useful for select cases, provided:
The text was updated successfully, but these errors were encountered: