hexresearch / hschain

Other
4 stars 0 forks source link

Fix possibility of leaking threads from runConcurrently #553

Closed Shimuuar closed 4 years ago

Shimuuar commented 4 years ago

killThread block in bracket cleanup and tehrefore could be interrupted. Instead create thread which only calls killThread. This is safe since calls to forkIO couldn't be interrupted. It should kill threads markginally faster and cost of creating multiple threads

Fixes #536