Mercurial > pub > ImplabNet
comparison Implab/Parallels/ArrayTraits.cs @ 104:5f10d54b45df v2
renamed Promise.Last -> Promise.On
Promise.On doesn't changes Promise.IsExclusive property
| author | cin |
|---|---|
| date | Sun, 09 Nov 2014 23:03:45 +0300 |
| parents | 279e226dffdd |
| children | 2573b562e328 |
comparison
equal
deleted
inserted
replaced
| 103:b3f5bc613905 | 104:5f10d54b45df |
|---|---|
| 181 Interlocked.Increment(ref slots); | 181 Interlocked.Increment(ref slots); |
| 182 lock (locker) { | 182 lock (locker) { |
| 183 Monitor.Pulse(locker); | 183 Monitor.Pulse(locker); |
| 184 } | 184 } |
| 185 }) | 185 }) |
| 186 .Last( | 186 .On( |
| 187 x => { | 187 x => { |
| 188 res[idx] = x; | 188 res[idx] = x; |
| 189 var left = Interlocked.Decrement(ref pending); | 189 var left = Interlocked.Decrement(ref pending); |
| 190 if (left == 0) | 190 if (left == 0) |
| 191 promise.Resolve(res); | 191 promise.Resolve(res); |
