mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-06 07:33:10 +00:00
implementing query type
This commit is contained in:
parent
eb79fad131
commit
0a98da3563
@ -142,7 +142,7 @@ method query*(
|
|||||||
self.tds[].tp.spawn queryTask(ret, self.tds, iter)
|
self.tds[].tp.spawn queryTask(ret, self.tds, iter)
|
||||||
await wait(ret[].signal)
|
await wait(ret[].signal)
|
||||||
|
|
||||||
iter[].it = nil # ensure our sharedptr doesn't try and dealloc
|
# iter[].it = nil # ensure our sharedptr doesn't try and dealloc
|
||||||
finally:
|
finally:
|
||||||
ret[].signal.close()
|
ret[].signal.close()
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ method close*(
|
|||||||
## this can block... how to handle? maybe just leak?
|
## this can block... how to handle? maybe just leak?
|
||||||
self.tds[].tp.shutdown()
|
self.tds[].tp.shutdown()
|
||||||
|
|
||||||
self[].tds[].ds = nil # ensure our sharedptr doesn't try and dealloc
|
# self[].tds[].ds = nil # ensure our sharedptr doesn't try and dealloc
|
||||||
|
|
||||||
proc newThreadProxyDatastore*(
|
proc newThreadProxyDatastore*(
|
||||||
ds: Datastore,
|
ds: Datastore,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user