mirror of
https://github.com/KDE/kde-linux.git
synced 2026-04-18 05:29:01 -04:00
because we fed the calcs channel from the main thread we'd eventually get stuck on the calcs workers waiting for space in the results channel but there'd never be space because the results are processed on the main thread and that is busy feeding calcs ... instead buffer the channels and also make sure to feed them from a goroutine so we are starting processing results while still producing calcs. I feel like this may be an anti pattern and maybe one should put everything in a routine and synchronize them all in the main thread. would prevent this sort of nonesense at least