Skip to main content
Control interface for managing a polling session. This interface provides imperative methods to start, stop, and inspect the status of a long-running polling loop that checks whether the polled request, such as an MFA push challenge or a pending consent, has been completed.
Example

Properties

boolean
Indicates whether the polling process is currently running.
Example
void
Starts or resumes the polling process.
  • If polling is already active, calling this again has no effect.
  • If previously stopped, calling this restarts the polling loop.
Example
void
Stops the polling process immediately.
  • Cancels any scheduled timer or pending request.
  • Once stopped, isRunning() returns false.
  • Safe to call multiple times; subsequent calls have no effect.
Example