trying out manual futures

This commit is contained in:
Jaremy Creechley 2023-09-14 13:53:37 -07:00
parent 7f112566f8
commit 8c5eea3ee1
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -88,14 +88,9 @@ method put*(
): Future[?!void] {.async.} =
echoed "put new request thr: ", $getThreadId()
var ret = await newThreadResult(void)
var answer: ?!void
block:
put(ret, self.tds, key, data)
return answer
let res = await put(self.tds, key, data)
return res
method put*(
self: ThreadProxyDatastore,