Sleep/Delay BML function
Summary:
I have a BML library function that loops through an array of items and makes a call to an external API for each item. I would like to add a delay of a second or 2 between the API calls, similar to the sleep function in other languages.
I thought I could create a utility and use a Do While loop but BML does not have a Do While function.
I saw a comment in the community that stated "it should be possible to build a util library function with bml function getcurrenttimeinmillis() and some nested loops which does the trick."
Tagged:
0