Determines the method for repeatedly checking a condition, for example, when waiting for a function to return true. ‘REQUEST_ANIMATION_FRAME’ polls on each browser frame.

Definition

enum Polling {
  REQUEST_ANIMATION_FRAME
}

Values

REQUEST_ANIMATION_FRAME

Polls by scheduling a new check on each `requestAnimationFrame` call. This is synchronized with the browser’s rendering cycle.