Stability | experimental |
---|---|
Maintainer | conal@conal.net |
Unambiguous choice
Documentation
Unambiguous choice operator. Equivalent to the ambiguous choice
operator, but with arguments restricted to be equal where not bottom,
so that the choice doesn't matter. See also amb
.
race :: IO a -> IO a -> IO aSource
Race two actions against each other in separate threads, and pick
whichever finishes first. See also amb
. Thanks to Spencer Janssen
for this simple version.