Fix some usages of typedesc in async procs
This also fixes a compilation error in modules, based only on the new async module (i.e. not importing the full asyncdispatch)
This commit is contained in:
parent
44ee3c27c0
commit
10142e4a80
3 changed files with 42 additions and 8 deletions
|
|
@ -11,7 +11,7 @@
|
|||
## *************
|
||||
## `asyncdispatch` module depends on the `asyncmacro` module to work properly.
|
||||
|
||||
import macros, strutils
|
||||
import macros, strutils, asyncfutures
|
||||
|
||||
proc skipUntilStmtList(node: NimNode): NimNode {.compileTime.} =
|
||||
# Skips a nest of StmtList's.
|
||||
|
|
@ -26,6 +26,8 @@ proc skipStmtList(node: NimNode): NimNode {.compileTime.} =
|
|||
|
||||
template createCb(retFutureSym, iteratorNameSym,
|
||||
strName, identName, futureVarCompletions: untyped) =
|
||||
bind finished
|
||||
|
||||
var nameIterVar = iteratorNameSym
|
||||
#{.push stackTrace: off.}
|
||||
proc identName {.closure.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue