Hi @disruptek
I'm testing the various API's and now I have come to testing the library within a multi threaded universe.
When enabling --threads:on the compilation fails due to gcsafe. In atoz we have many global vars, but I can manually convert them into proc's, e.g.:
var headObject* = Call_HeadObject_21626621(name: "headObject", xxxxx
But we are still relying on the rest-package with the Recallable, which also blocks the usage of --threads:on.
All of this can be "avoided" by using a {.gcsafe.}:-block - but whats the impact? Do you have an answer, or can you point me in a direction?
{.gcsafe.}:
let request = headObject.call(%*{"Bucket": bucket, "Key": key}, query=nil, header=nil, formData=nil, body=nil)
result = await request.issueRequest()
Hi @disruptek
I'm testing the various API's and now I have come to testing the library within a multi threaded universe.
When enabling
--threads:onthe compilation fails due togcsafe. Inatozwe have many globalvars, but I can manually convert them intoproc's, e.g.:But we are still relying on the
rest-package with theRecallable, which also blocks the usage of--threads:on.All of this can be "avoided" by using a
{.gcsafe.}:-block - but whats the impact? Do you have an answer, or can you point me in a direction?{.gcsafe.}: let request = headObject.call(%*{"Bucket": bucket, "Key": key}, query=nil, header=nil, formData=nil, body=nil) result = await request.issueRequest()