mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-05 22:43:10 +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`)
|
let (`jobRes`, `futName`) = createFuture(`jobs`, `nm`)
|
||||||
`jobs`.taskpool.spawn(`fncall`)
|
`jobs`.taskpool.spawn(`fncall`)
|
||||||
`futName`
|
`futName`
|
||||||
|
|
||||||
echo "submit: res:\n", result.repr
|
echo "submit: res:\n", result.repr
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|||||||
@ -53,6 +53,7 @@ macro asyncTask*(p: untyped): untyped =
|
|||||||
nnkBracketExpr.newTree(ident"JobResult", retType),
|
nnkBracketExpr.newTree(ident"JobResult", retType),
|
||||||
newEmptyNode()
|
newEmptyNode()
|
||||||
)
|
)
|
||||||
|
asyncParams[0] = newEmptyNode()
|
||||||
asyncParams.insert(1, jobArg)
|
asyncParams.insert(1, jobArg)
|
||||||
let fn = mkProc(procId, asyncParams, asyncBody)
|
let fn = mkProc(procId, asyncParams, asyncBody)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user