Closed Sparky983 closed 1 year ago
Will be closed once #121 either is closed as not planned or its status goes out of proposal.
The reason this is being reopened is because if Subscribable
could have events published to it, it would make a lot more sense to be named Publisher
.
Reopening this as it needs to be reconsidered.
If #121 is implemented, the publish methods will not be able to be attached to Publisher
/Subscribable
classes since they will conflict. Instead there would most likely have to be two classes:
Subscribable
Subscription subscribe(T)
Publisher
Button.Publisher
void click(Click)
which publishes a click eventGui.Publisher
void button(Slot, Button)
which publishes a button set eventClosed by c8aaa4ca5cd3db642059081d64fcc667a17a572f
Subscribable.Subscriber
would also moved to be justSubscriber
.