> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WaitForFunctionOptions

Input options for the 'waitForFunction' mutation.

## Definition

```graphql theme={null}
input WaitForFunctionOptions {
  polling: Polling
  interval: Int
  timeout: Int
}
```

## Fields

### `polling`

[Polling](/reference/graphql/enums/polling)

Polling method: `REQUEST_ANIMATION_FRAME` (raf) for browser-synchronized polling, or a number for millisecond interval.
Defaults to `raf`.

### `interval`

[Int](/reference/graphql/scalars/int)

Polling interval in milliseconds, if 'polling' is not `REQUEST_ANIMATION_FRAME`. Example: `100` (for 100ms interval).

### `timeout`

[Int](/reference/graphql/scalars/int)

Maximum time in milliseconds to wait for the function to return a truthy value. Defaults to a global timeout.
