Hi @gabriel.nascimento,
welcome to the community forum
It depends on how you expect to design the polling operation. You could check the timers module.
These similar topics could also be useful Polling in K6 for a specific result and Script to wait for a particular status from a response - #3 by rodyb.
Let me know if it helps.