stm-orelse-io: Choose between the return value of an STM operation and an IO action.
While tinkering on a project, I frequently found myself wanting to wait for an IO operation unless something more important came up. The Control.Concurrent.STM.OrElseIO 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
|Versions [RSS] [faq]||0.1|
|Dependencies||base (==4.*), stm [details]|
|Copyright||2012 Gard Spreemann|
|Maintainer||Gard Spreemann <firstname.lastname@example.org>|
|Uploaded||by GardSpreemann at 2012-09-15T17:17:34Z|
|Downloads||1057 total (10 in the last 30 days)|
|Rating||(no votes yet) [estimated by Bayesian average]|
Docs uploaded by user
Build status unknown [no reports yet]