summary refs log tree commit diff stats
path: root/lib/pure/asyncmacro.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-09-21 11:38:04 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-09-21 11:38:04 +0200
commita04c7d8b38fd0027c2562dbd1401bf6ee7b909e4 (patch)
tree5255bb0d6b838ec37bea135dc3ed1c37b78b9600 /lib/pure/asyncmacro.nim
parentae7fe5087f3e4f6ddc572254ae3ddcc8324099f1 (diff)
downloadNim-a04c7d8b38fd0027c2562dbd1401bf6ee7b909e4.tar.gz
introduce OnHeapNew and rename TLoc.s to TLoc.storage
Diffstat (limited to 'lib/pure/asyncmacro.nim')
-rw-r--r--lib/pure/asyncmacro.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/asyncmacro.nim b/lib/pure/asyncmacro.nim
index 6e7d7993f..8607b4bfc 100644
--- a/lib/pure/asyncmacro.nim
+++ b/lib/pure/asyncmacro.nim
@@ -28,7 +28,7 @@ template createCb(retFutureSym, iteratorNameSym,
                   name, futureVarCompletions: untyped) =
   var nameIterVar = iteratorNameSym
   #{.push stackTrace: off.}
-  proc cb0 {.closure.} =
+  proc cb0 {.closure, gcsafe.} =
     try:
       if not nameIterVar.finished:
         var next = nameIterVar()