You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!