Choose between the return value of an STM operation and an IO action. http://nonempty.org/software/stm-orelse-io
|Latest on Hackage:||0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
While tinkering on a project, I frequently found myself
wanting to wait for an IO operation unless something
more important came up. The
module is meant to reduce the boilerplate needed when choosing
between IO actions and STM operations.
You must use the threaded runtime with this package.
Kill off IO threads whose return values will never be needed.
runOrElseand friends to