Light Logo
JavaScript SDK (v0.56.0)Reference

PredictionWaitOptions

Options for customizing wait behaviour.

Interface: PredictionWaitOptions

Options for customizing wait behaviour.

Extended by

Properties

onPoll()?

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

Optional callback that receives the latest prediction after each poll.

Parameters

prediction

PredictionWithDetails

Returns

Promise<void>


pollInterval

pollInterval: number

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