implementing query type

This commit is contained in:
Jaremy Creechley 2023-08-29 15:57:15 -07:00 committed by Dmitriy Ryajov
parent 14c39478e9
commit f1d2a0ed26
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -142,7 +142,7 @@ method query*(
self.tds[].tp.spawn queryTask(ret, self.tds, iter)
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:
ret[].signal.close()
@ -162,7 +162,7 @@ method close*(
## this can block... how to handle? maybe just leak?
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*(
ds: Datastore,