async-pool
async-pool copied to clipboard
Nested calls to mapTasks hang indefinitely
test/main.hs has the following test, which passes
it "nested mapTasks work" $ withTaskGroup 1 $ \p -> do
mapTasks p ([mapTasks p [pure ()]])
True `shouldBe` True
However, that test hangs indefinitely (fails with test: thread blocked indefinitely in an MVar operation):
it "nested mapTasks work" $ withTaskGroup 1 $ \p -> do
mapTasks p ([mapTasks p [pure ()], mapTasks p [pure ()]])
True `shouldBe` True
Looks like https://github.com/jwiegley/async-pool/pull/26 (attempt to fix https://github.com/jwiegley/async-pool/issues/4) wasn't robust enough @l29ah