I know those aren’t technically “sleeps” but is there any reliable way to “wait” for a time in milliseconds?
edit: It looks like timers does exist and appears to work. Right now my code looks like this (i’ve made it more basic looking for clarity):
So it does appear to wait around 400ms. However I am curious on one thing. Since setTimeout is an async function, does the default function itself wait for the timeout to end before “ending” that VU’s execution.
IE for a VU that runs this thread does it work like this:
Start Default Function
Do first HTTP Request (against firstURL)
While it’s waiting end the default function
Some other thread finishes the HTTP request against secondURL?
or will it wait for the secondURL to finish and the setTimeout Function to finish before ending the default function?