这个while循环是什么意思with or operator and condition

What does this while loop means with or operator and condition

我有文档中的 while 循环。但我不知道它到底是做什么的:

while (waitForEver || (duration < timeout)){}

我应该如何定义 "lt" 以及它应该具有什么值?

我必须获得申请的当前状态。

看起来你是从网上复制的

只需将 &lt; 替换为 <。与 &gt;> 相同。

如果你将 -1 作为超时时间,则继续尝试,否则在超时 ms 后放弃