Making components interruptible

To make a long-running loop in a component interruptible, use the

component.isStopping();

API call. This call returns true when a user attempts to stop the component. As the component author, you can check the status of component.isStopping() within your loop and exit the loop if it returns true, allowing the component to stop quickly. This is useful for applications that take a long time to complete their tasks, such as running numerous unit tests in a test system or importing a large number of documents from a documentation system.

Â