ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# B.51 WaitForTask Wait for a condition to become true or a timeout, whichever comes first. Table B.53:聽Attributes NameTypeDescriptionDefaultRequired`MaxWait``Integer`Set the maximum length of time to wait in units3minYes`MaxWaitUnit``String`Set the max wait time unit. Must be one of "`week`","`day`", "`hour`", "`minute`", "`second`", "`millisecond`"millisecondNo`CheckEvery``Integer`Set the time between each check500msYes`CheckEveryUnit``String`Set the check every time unit. Must be one of "`week`","`day`", "`hour`", "`minute`", "`second`", "`millisecond`"millisecondsNo`TimeoutProperty``String`Name of the property to set after a timeout. nullNo B.51.1 Examples Wait for a maximum of ten seconds for the file "`ready`" to appear. ``` <waitfor maxwaitunit="second" maxwait="10"> <available file="ready"/> </waitfor> ``` B.51.2 Supported Nested Tags All [conditionals](ch05s08.html "5.8 Conditions") including `and`, `or`, `not` etc.