zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 71 forks source link

[Arch] Simplify threading to better handle cancelled background tasks #445

Closed zielu closed 1 year ago

zielu commented 1 year ago

Due to usage of background tasks it is possible for a task to start when project is being closed. This leads to confusing exceptions thrown by places which are already disposed.

Previous attempt to bind lifecycle to disposing was not successful because components are disposed top-down (starting from Project). It also introduced very complicated lifecycle handling.

Instead handling can be simplified:

zielu commented 1 year ago

Done in 500.0.7