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)
| 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 |
no outgoing calls