How to synchronise piece of code in K6 script

Scenario:
we have API like → /contact/{mobile_number}, in this case we need to pass mobile_number in sequence for each iteration/request in run time like 7777777771, 7777777772, 7777777773.

How to achieve this?

Hi @shantaveer, welcome to the forum

From the looks of it, you don’t really need concurrency so I would argue you can just use 1 VU as all operations in a VU are synchronous within the VU.

Hope this helps you