JavaScript SDK (v0.34.0)Reference
WaitOptions
Options for customizing wait behaviour.
Interface: WaitOptions
Options for customizing wait behaviour.
Properties
onPoll()?
optionalonPoll: (prediction) =>Promise<void>
Optional callback that receives the latest prediction after each poll.
Parameters
prediction
Returns
Promise<void>
pollInterval
pollInterval:
number
Time in milliseconds between polling attempts to check the prediction status.