mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
combining together
This commit is contained in:
parent
4a039ec5cd
commit
834f54b8ba
@ -38,7 +38,14 @@ macro asyncTask*(p: untyped): untyped =
|
||||
echo "param: ", paramId, " tp: ", paramType.treeRepr
|
||||
tcall.add newCall("checkParamType", paramId)
|
||||
asyncBody.add tcall
|
||||
let fn = mkProc(procId, params, asyncBody)
|
||||
var asyncParams = params.copyNimTree()
|
||||
let retType = if not hasReturnType(params): ident"void"
|
||||
else: params.getReturnType()
|
||||
echo "RETTYPE: ", retType.repr
|
||||
# let jobRes = genSym(nskLet, "jobRes")
|
||||
# asyncParams.insert(0, )
|
||||
let fn = mkProc(procId, asyncParams, asyncBody)
|
||||
|
||||
|
||||
# echo "asyncTask:fn:body:\n", fn.treerepr
|
||||
|
||||
@ -56,6 +63,10 @@ proc doHashes*(data: openArray[byte],
|
||||
opts: HashOptions) {.asyncTask.} =
|
||||
discard
|
||||
|
||||
proc doHashes2*(data: openArray[byte],
|
||||
opts: HashOptions): float {.asyncTask.} =
|
||||
discard
|
||||
|
||||
# proc doHashesRes*(data: openArray[byte],
|
||||
# opts: HashOptions): int {.asyncTask.} =
|
||||
# # echo "args: ", args.len()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user