Mercurial > pub > ImplabNet
diff Implab/Parallels/ArrayTraits.cs @ 23:f0568ff069a5
Слияние с promises
author | cin |
---|---|
date | Wed, 13 Nov 2013 14:03:20 +0400 |
parents | e3935fdf59a2 |
children | ee04e1fa78da |
line wrap: on
line diff
--- a/Implab/Parallels/ArrayTraits.cs Fri Nov 08 01:27:04 2013 +0400 +++ b/Implab/Parallels/ArrayTraits.cs Wed Nov 13 14:03:20 2013 +0400 @@ -140,7 +140,7 @@ AsyncPool.InvokeNewThread(() => { for (int i = 0; i < source.Length; i++) { - if(promise.State != PromiseState.Unresolved) + if(promise.IsResolved) break; // stop processing in case of error or cancellation var idx = i; semaphore.WaitOne();