SecondaryLoop instead of SwingWorker?

From the documentation for SecondaryLoop, it is unclear when you should use this new function instead of SwingWorker , a few examples of interesting cases would be useful.

+6
source share
1 answer

The purpose of SecondaryLoop is basically the same as SwingWorker. However, using SecondaryLoop may be less hairy than combining several SwingWorkers.

See Hidden Java 7 Features - SecondaryLoop for a detailed explanation and example.

+6
source

Source: https://habr.com/ru/post/913451/


All Articles