MCPcopy Index your code
hub / github.com/pyload/pyload / setWait

Method setWait

module/plugins/Plugin.py:264–272  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 1

retryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected