How to set the names of threads under Io Groups?

with std.Thread, you can use setName after you spawn it. is there a similar functionality for io groups/ io threads?

it would be very helpful in debugging to see the names of threads. my project is highly multithreaded and my CPU happens to have a lot of cores.

1 Like

std.Thread.setName() is a wrapper around OS-capabilities.
I would argue this is not even really intended to be used for intra-process debug, but rather to have some metadata for OS-level or cross thread inspection (Not saying your usage isnt fine).
I guess what your want is more like a log.span which std.log does not provide.
If you want something like this today, you can pass your “span” as an argument to your function on the group call instead and use that in your debug or log. I would argue against adding debug capabilities to std.Io though?