e00f5d1c0a
Patch by Brecht, which in original version also gets rid of ThreadedWorker in favor of new task scheduler and ports some areas to it. Kudos to Brecht for this work!