3 ms·
Both Event and Subscription class have their own state to maintain, plus all the methods, so they cannot be interfaces. As for sharing events between component
by vitaly-t 7y ago
Both Event and Subscription class have their own state to maintain, plus all the methods, so they cannot be interfaces.
As for sharing events between components, there is nothing to it, you just expose an event object from the component, so anyone can subscribe.