Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
k6 http调用是异步的吗?当我执行一个呼叫时,就像http.get(url, params)是k6等到响应?
k6
http
http.get(url, params)
如果它是异步的,假设我正在执行几个调用,我希望一个调用的响应作为另一个调用的参数。在执行第二次调用之前如何等待,直到从第一次调用返回响应?
幸运的是,k6目前不支持异步或更普遍的事件循环。
您可以在此处阅读有关脚本执行方式的更多详细信息。
笔记
我们计划支持事件循环,但我现在不能告诉你什么时候会发生。