Issues when using multiple threads through Threads.@threads

If I understand your question correctly, the right documentation is here: Threads.@spawn: all it takes is a wait statement. Does that help?

Also please remember to format your code: Please read: make it easier to help you