MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / sleep

Method sleep

src/socketio/client.py:346–354  ·  view source on GitHub ↗

Sleep for the requested amount of time using the appropriate async model. This is a utility function that applications can use to put a task to sleep without having to worry about using the correct call for the selected async mode.

(self, seconds=0)

Source from the content-addressed store, hash-verified

344 return self.eio.start_background_task(target, *args, **kwargs)
345
346 def sleep(self, seconds=0):
347 """Sleep for the requested amount of time using the appropriate async
348 model.
349
350 This is a utility function that applications can use to put a task to
351 sleep without having to worry about using the correct call for the
352 selected async mode.
353 """
354 return self.eio.sleep(seconds)
355
356 def _get_real_value(self, value):
357 """Return the actual value, for parameters that can also be given as

Callers 15

waitMethod · 0.95
test_sleepMethod · 0.95
configMethod · 0.45
_check_for_upgradeMethod · 0.45
_emit_server_statsMethod · 0.45
_listenMethod · 0.45
configMethod · 0.45
_check_for_upgradeMethod · 0.45
_emit_server_statsMethod · 0.45
_listenMethod · 0.45

Calls

no outgoing calls

Tested by 8

test_sleepMethod · 0.76
fake_waitMethod · 0.36
fake_event_waitMethod · 0.36
rMethod · 0.36
test_admin_featuresMethod · 0.36
fake_event_waitMethod · 0.36
test_admin_featuresMethod · 0.36