Inspectopedia
 
2024.3

Infinite loop statement

Warning
Last modified: 03 December 2024

Reports for, while, or do statements that can only exit by throwing an exception. While such statements may be correct, they often happen due to coding errors.

Example:

Use the Ignore when placed in Thread.run option to ignore the infinite loop statements inside Thread.run. It may be useful for the daemon threads.

Example: