summary refs log tree commit diff stats
path: root/lib/pure/concurrency
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-06-02 09:13:16 +0200
committerAraq <rumpf_a@web.de>2014-06-02 09:13:16 +0200
commitb78173788d1f5e45091c31039e82960187db1277 (patch)
tree5ac0df3c2a60e035a0b0d455495e156b02cde505 /lib/pure/concurrency
parente6d12f3f6ee933f295dd83a64f5f0e6eba77e1d1 (diff)
downloadNim-b78173788d1f5e45091c31039e82960187db1277.tar.gz
bugfix: codegen for promises
Diffstat (limited to 'lib/pure/concurrency')
-rw-r--r--lib/pure/concurrency/threadpool.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/concurrency/threadpool.nim b/lib/pure/concurrency/threadpool.nim
index 24cb9ccdd..3a7693791 100644
--- a/lib/pure/concurrency/threadpool.nim
+++ b/lib/pure/concurrency/threadpool.nim
@@ -151,7 +151,7 @@ proc await*[T](prom: Promise[T]) =
   if prom.usesCondVar: await(prom.cv)
 
 proc awaitAndThen*[T](prom: Promise[T]; action: proc (x: T) {.closure.}) =
-  ## blocks until the value is available and then passes this value
+  ## blocks until the ``prom`` is available and then passes its value
   ## to ``action``. Note that due to Nimrod's parameter passing semantics this
   ## means that ``T`` doesn't need to be copied and so ``awaitAndThen`` can
   ## sometimes be more efficient than ``^``.