7 Sep
2015
7 Sep
'15
11:25 p.m.
On 8/09/2015 03:30, Nat Goodspeed wrote:
Could you describe briefly what this example does? Is it just workers racing (in the good sense) to satisfy the promise? Or does serialization of set_xxx calls matter?
It's just workers racing to satisfy the promise. The first one to do so sets the value, the rest get an exception.
Seems like that could be the basis for a nice when_any?
Races to get exceptions in the common case does not satisfy any meaning of the word "nice".