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.
TODO:
Kill off IO threads whose return values will never be needed.
Possibly rename
runOrElse
and friends toorElseIO
or similar.
Modules
[Index]
Downloads
- stm-orelse-io-0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1 |
---|---|
Dependencies | base (>=4 && <5), stm [details] |
License | BSD-3-Clause |
Copyright | 2012 Gard Spreemann |
Author | Gard Spreemann |
Maintainer | Gard Spreemann <gspreemann@gmail.com> |
Category | Concurrency |
Home page | http://nonempty.org/software/stm-orelse-io |
Uploaded | by GardSpreemann at 2012-09-15T17:17:34Z |
Distributions | NixOS:0.1 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 1246 total (6 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |