Hi Karen,
There is an option (that is not in the documentation yet...) called "timeout". With it you can specify timeout in milliseconds:
indigo.setOption("timeout", "3000")
This sets timeout to 3 seconds.
We tried to add these check in all the methods that could work slow. If it is not working for your case, just let me know and I will add additional check in the code if it was missing.
If timeout is reached the methods will throw an exception. We can add additional check in the layout to stop doing iterations if timeout is reached. Do you these or is exception is fine?
Best regards,
Mikhail