I’d like to turn off (like it is nothing) @threads macro in some case while debugging. Such as I want to pass optional parameter use_threads
, and then how would I modify the following code not to use threads (possibly without introducing if-then everywhere)?
@threads for i in eachidex(...)
do something
end
Thank you very much in advance