Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite sleep doc suggestion #318

Open
mitchellwrosen opened this issue May 12, 2020 · 0 comments
Open

Infinite sleep doc suggestion #318

mitchellwrosen opened this issue May 12, 2020 · 0 comments

Comments

@mitchellwrosen
Copy link
Contributor

Doc suggestion: indicate that to simulate an infinite sleep, the usual Haskell idiom will not do

sleepForever = forever (threadDelay maxBound)

It could be written like this instead, since dejafu (correctly) does not perform (inaccurate, unreliable) deadlock detection like the GHC runtime:

sleepForever = newEmptyMVar >>= takeMVar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant