got together

This commit is contained in:
Jaremy Creechley 2024-02-13 22:52:40 -07:00
parent 3fd3bb2f3d
commit c95fc0875f
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ macro submitMacro*(tp: untyped, jobs: untyped, exp: untyped): untyped =
let (`jobRes`, `futName`) = createFuture(`jobs`, `nm`)
`jobs`.taskpool.spawn(`fncall`)
`futName`
echo "submit: res:\n", result.repr
echo ""

View File

@ -53,6 +53,7 @@ macro asyncTask*(p: untyped): untyped =
nnkBracketExpr.newTree(ident"JobResult", retType),
newEmptyNode()
)
asyncParams[0] = newEmptyNode()
asyncParams.insert(1, jobArg)
let fn = mkProc(procId, asyncParams, asyncBody)