46.17.1Util API

 

The Util object has utility methods.

46.17.2Method: sleep(millis)

 

This method pauses execution for the given amount of time.

Inputs:

  • millis – The number of milliseconds to sleep.

Outputs:

  • This method does not return a value.

Example:

Util.sleep(1000);