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

io-sim: Fix flushTQueue implementation #135

Closed ch1bo closed 8 months ago

ch1bo commented 8 months ago

Fixes #133 and also another issue found while fixing.

Now flushTQueue actually empties the queue and also maintains FIFO order.

ch1bo commented 8 months ago

All comments addressed on this one @coot