mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-07 15:33:09 +00:00
setting up wrappers
This commit is contained in:
parent
14392e838f
commit
e390d915fa
@ -42,8 +42,8 @@ macro asyncTask*(p: untyped): untyped =
|
||||
# asyncBody.add nnkLetSection.newTree(
|
||||
# nnkIdentDefs.newTree(ident"res", newEmptyNode(), tcall))
|
||||
asyncBody = quote do:
|
||||
let res {.inject.} = `tcall`
|
||||
discard jobResult.queue.send((jobResult.id, res,))
|
||||
let val {.inject.} = `tcall`
|
||||
discard jobResult.queue.send((jobResult.id, val,))
|
||||
|
||||
var asyncParams = params.copyNimTree()
|
||||
let retType = if not hasReturnType(params): ident"void"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user