mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
got together
This commit is contained in:
parent
3fd3bb2f3d
commit
c95fc0875f
@ -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 ""
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user