diff Implab/Parallels/ArrayTraits.cs @ 242:cbe10ac0731e v3

Working on promises
author cin
date Wed, 24 Jan 2018 03:03:21 +0300
parents 706fccb85524
children
line wrap: on
line diff
--- a/Implab/Parallels/ArrayTraits.cs	Tue Jan 23 19:39:21 2018 +0300
+++ b/Implab/Parallels/ArrayTraits.cs	Wed Jan 24 03:03:21 2018 +0300
@@ -164,7 +164,7 @@
             // Analysis disable AccessToDisposedClosure
             AsyncPool.RunThread<int>(() => {
                 for (int i = 0; i < source.Length; i++) {
-                    if(promise.IsResolved)
+                    if(promise.IsFulfilled)
                         break; // stop processing in case of error or cancellation
                     var idx = i;