Set a specific wait time later used with `wait` :param seconds: wait time in seconds :param reconnect: True if a reconnect would avoid wait time
(self, seconds, reconnect=False)
| 262 | |
| 263 | |
| 264 | def setWait(self, seconds, reconnect=False): |
| 265 | """Set a specific wait time later used with `wait` |
| 266 | |
| 267 | :param seconds: wait time in seconds |
| 268 | :param reconnect: True if a reconnect would avoid wait time |
| 269 | """ |
| 270 | if reconnect: |
| 271 | self.wantReconnect = True |
| 272 | self.pyfile.waitUntil = time() + int(seconds) |
| 273 | |
| 274 | def wait(self): |
| 275 | """ waits the time previously set """ |