Light Logo
JavaScript SDK (v0.34.0)Reference

WaitOptions

Options for customizing wait behaviour.

Interface: WaitOptions

Options for customizing wait behaviour.

Properties

onPoll()?

optional onPoll: (prediction) => Promise<void>

Optional callback that receives the latest prediction after each poll.

Parameters

prediction

PredictionWithIO

Returns

Promise<void>


pollInterval

pollInterval: number

Time in milliseconds between polling attempts to check the prediction status.