Return the actual value, for parameters that can also be given as callables.
(self, value)
| 373 | return await self.eio.sleep(seconds) |
| 374 | |
| 375 | async def _get_real_value(self, value): |
| 376 | """Return the actual value, for parameters that can also be given as |
| 377 | callables.""" |
| 378 | if not callable(value): |
| 379 | return value |
| 380 | if inspect.iscoroutinefunction(value): |
| 381 | return await value() |
| 382 | return value() |
| 383 | |
| 384 | async def _send_packet(self, pkt): |
| 385 | """Send a Socket.IO packet to the server.""" |
no outgoing calls
no test coverage detected