eclipse-platform / eclipse.platform.swt

Eclipse SWT
https://www.eclipse.org/swt/
Eclipse Public License 2.0
118 stars 139 forks source link

Integration with java.util.concurrent framework #64

Open laeubi opened 2 years ago

laeubi commented 2 years ago

Concurrency could be challenging, especially when it comes to UI and responsiveness. And even more with the single-threading model of SWT (and other UI frameworks as well) as one easily could block the UI then.

Java for several year contains some where useful tool with the concurrency framework but it is quite hard for users to interact with that as SWT does not offer some basic primitives (most notable Executors and CompletableFuture.

My proposal is to add some basic glues to allow a seamless integration of SWT with then concurrency framework so allow users more save, modern and easy to use calls into the SWT framework that hopefully leads to less blocking calls as it becomes incredible easy to use.

I have prototypesd such components in the past two years in an RCP application and will contribute some patches to integrate this directly in SWT.

akurtakov commented 2 years ago

@laeubi as @vogella already approved but we are close to M3, feel free to merge it right after branching 4.25 off so there is whole release cycle to test its usage.

laeubi commented 2 years ago

@akurtakov I think you better add this as an approving review to the PR itself, is there a scheduled date already for when " branching 4.25 off " will happen? Then mentioning the date would help too :-)

akurtakov commented 2 years ago

Sep 9th (at latest but probably couple days earlier) opening 4.26 stream for development should be complete.