Open maksar opened 4 months ago
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):
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
test/main.hs has the following test, which passes
However, that test hangs indefinitely (fails with
test: thread blocked indefinitely in an MVar operation
):