RFR: JDK-8304439: Subscription based listeners [v2]
Kevin Rushforth
kcr at openjdk.org
Wed Jun 28 15:10:09 UTC 2023
On Sat, 24 Jun 2023 19:23:10 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> My suggestion is to have the following new operations:
>
> * `subscribe` (`Runnable`, `Consumer`, `BiConsumer`)
This seems reasonable. I could be talked into the longer names, but I prefer the overloaded `subscribe` name.
> * `subscribeListener` (`InvalidationListener`, `ChangeListener`)
This might be a useful follow-on Enhancement, but I wouldn't do it as part of this one.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1069#discussion_r1245370743
More information about the openjfx-dev
mailing list