mirror of
https://github.com/logos-storage/apatheia.git
synced 2026-01-02 21:13:08 +00:00
cleanup
This commit is contained in:
parent
8c498a7484
commit
16b2c10bbf
@ -1,6 +1,5 @@
|
||||
import std/tables
|
||||
import std/macros
|
||||
import std/sequtils
|
||||
|
||||
import ./queues
|
||||
|
||||
@ -78,8 +77,7 @@ macro submitMacro(tp: untyped, jobs: untyped, exp: untyped): untyped =
|
||||
|
||||
result = quote do:
|
||||
let (`jobRes`, `futName`) = createFuture(`jobs`, `nm`)
|
||||
expandMacros:
|
||||
`jobs`.taskpool.spawn(`fncall`)
|
||||
`jobs`.taskpool.spawn(`fncall`)
|
||||
`futName`
|
||||
|
||||
# echo "submit: res:\n", result.repr
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user