Mercurial > pub > ImplabNet
diff Implab/Parallels/ArrayTraits.cs @ 145:706fccb85524 v2
RC: cancellation support for promises + tests
author | cin |
---|---|
date | Sun, 08 Mar 2015 02:52:27 +0300 |
parents | a336cb13c6a9 |
children | cbe10ac0731e |
line wrap: on
line diff
--- a/Implab/Parallels/ArrayTraits.cs Fri Mar 06 15:45:26 2015 +0300 +++ b/Implab/Parallels/ArrayTraits.cs Sun Mar 08 02:52:27 2015 +0300 @@ -152,7 +152,7 @@ throw new ArgumentOutOfRangeException("threads","Threads number must be greater then zero"); if (source.Length == 0) - return Promise<TDst[]>.ResultToPromise(new TDst[0]); + return Promise<TDst[]>.FromResult(new TDst[0]); var promise = new Promise<TDst[]>(); var res = new TDst[source.Length];