scalaz/scalaz — pull request #312 by markhibberd (2013-03-17 10:42:34+00:00)
Title: Eliminated race and subsequent pattern error from Future#chooseAny.

There was a race condition where the latches were released
before the result was set. This meant that the pattern on
line 285 fails. The failed pattern match resulted in an
exception and an eventual deadlock.

Fixes #308.

@pchiusano for review.

A wider question for this is how can / are tests going to be formulated around scalaz-concurrent? There needs to be a significant investment in testing this sort of code, but I am not really sure of a good place to start.