mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
setup OpenArrayHolder conversion
This commit is contained in:
parent
310f833996
commit
89ec8371b4
@ -57,7 +57,7 @@ macro asyncTask*(p: untyped): untyped =
|
||||
var asyncParams = nnkFormalParams.newTree()
|
||||
asyncParams.add newEmptyNode()
|
||||
asyncParams.add jobArg
|
||||
for i, p in params[1..^1]:
|
||||
for i, p in params[1 ..^ 1]:
|
||||
let pt = p[1]
|
||||
if pt.kind == nnkBracketExpr and pt[0].repr == "openArray":
|
||||
# special case openArray to support special OpenArrayHolder from jobs module
|
||||
@ -66,7 +66,6 @@ macro asyncTask*(p: untyped): untyped =
|
||||
else:
|
||||
asyncParams.add p
|
||||
|
||||
|
||||
let fn = mkProc(procId, asyncParams, asyncBody)
|
||||
|
||||
result = newStmtList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user