4 ms·
Alright. The trick is to not use Loom virtual threads. I will say Java's Loom is ruthlessly elegant in this way. But won't you run into issues where you don'
by jayd16 6y ago
Alright. The trick is to not use Loom virtual threads. I will say Java's Loom is ruthlessly elegant in this way.
But won't you run into issues where you don't want to call certain code from that UI thread? Isn't that "code coloring"?
- pjmlp 6y agoCode colouring usually means it won't even compile, like on C# async/await case. In your example, for Swing applications you should use invokeLater(Runnable r) anyway, and it doesn't matter what implements the interface.