randy3k / AutomaticPackageReloader

Automatically reload submodules while developing a Sublime Text package.
MIT License
38 stars 13 forks source link

Run in own thread. #25

Closed Thom1729 closed 5 years ago

Thom1729 commented 5 years ago

sublime.set_timeout_async runs code in the shared async thread. It's possible for another package to block that thread, preventing other code from running. I've experienced this myself -- another package was blocking the async thread for over a minute, delaying package reloading until it all ran at once later.

This PR runs the reloading code in a new thread instead.

randy3k commented 5 years ago

Thanks