Are k6 http calls asynchronous?

Viewed 3653

Are k6 http calls asynchronous? When I execute a call like http.get(url, params) is k6 waiting until the response?

If it is asynchronous and let's say I'm executing few calls and I want the response of a one call as the parameter to another call. How can I wait before executing the 2nd call until the response is returned from 1st one?

1 Answers

Fortunately, k6 currently does not support asynchronous, or more generally, event loop.

You can read here for more details about how script execution.

Note

We have plan to support event loop, but I can't tell you now when it will happen.

Related