mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 13:03:11 +00:00
setting up wrappers
This commit is contained in:
parent
14d65a5060
commit
fd323de9b7
@ -28,6 +28,8 @@ macro asyncTask*(p: untyped): untyped =
|
||||
echo "\nASYNC_TASK: "
|
||||
echo "name: ", name
|
||||
# echo "ASYNC_TASK: call: \n", tcall.treeRepr
|
||||
if not hasReturnType(params):
|
||||
error("tasklet definition must have return type", p)
|
||||
|
||||
let tp = mkProc(procId.procIdentAppend("Tasklet"),
|
||||
params, body)
|
||||
@ -62,9 +64,9 @@ type
|
||||
HashOptions* = object
|
||||
striped*: bool
|
||||
|
||||
proc doHashes*(data: openArray[byte],
|
||||
opts: HashOptions) {.asyncTask.} =
|
||||
echo "hashing"
|
||||
# proc doHashes*(data: openArray[byte],
|
||||
# opts: HashOptions) {.asyncTask.} =
|
||||
# echo "hashing"
|
||||
|
||||
proc doHashes2*(data: openArray[byte],
|
||||
opts: HashOptions): float {.asyncTask.} =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user