Options for the force stop of the sync polling.

interface SyncPollInputOptions {
    maximumIterations?: number;
    maximumWaitingTimeInMilliseconds?: number;
    requestIntervalInMilliseconds?: number;
}

Properties

maximumIterations?: number

The maximum number of iterations. Poll will stop after this number of iterations, no matter condition is met or not.

If not specified limit on iterations is NOT given.

maximumWaitingTimeInMilliseconds?: number

The maximum amount of time (in milliseconds) to wait for the condition to be met.

If not specified limit on time is NOT given.

requestIntervalInMilliseconds?: number

The interval of time (in milliseconds) between each function call.

If not specified a default value is given.