summary refs log tree commit diff stats
path: root/tests/parallel/tpi.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parallel/tpi.nim')
-rw-r--r--tests/parallel/tpi.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/parallel/tpi.nim b/tests/parallel/tpi.nim
index 1ef5c6aea..dcb9b8fc5 100644
--- a/tests/parallel/tpi.nim
+++ b/tests/parallel/tpi.nim
@@ -8,7 +8,7 @@ import strutils, math, threadpool
 proc term(k: float): float = 4 * math.pow(-1, k) / (2*k + 1)
 
 proc piU(n: int): float =
-  var ch = newSeq[Promise[float]](n+1)
+  var ch = newSeq[FlowVar[float]](n+1)
   for k in 0..n:
     ch[k] = spawn term(float(k))
   for k in 0..n: