input-output-hk / io-sim

Haskell's IO simulator which closely follows core packages (base, async, stm).
https://hackage.haskell.org/package/io-sim
Apache License 2.0
37 stars 15 forks source link

Prevent STM waking up threads blocked on `threadDelay` #143

Closed amesgen closed 8 months ago

amesgen commented 8 months ago

Closes #142

nfrisby commented 8 months ago

Some good news: this fixes my direct "repro".

Some bad news: I'm seeing a different test failure now, so I'll try to debug that promptly to see if it's my own mistake that is masking more issues like this one.

nfrisby commented 8 months ago

This fix works for me! My new GSM tests are passing locally. My PR is unblocked (other than needing a CHaP release, etc---I've merely locally backported Esgen's patch to the last io-sim release and used a source-repository-package in my local cabal.project for now).

coot commented 8 months ago

I'll cut a new hackage release, once #141 is merged.