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

Method _get_real_value

src/socketio/async_client.py:375–382  ·  view source on GitHub ↗

Return the actual value, for parameters that can also be given as callables.

(self, value)

Source from the content-addressed store, hash-verified

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

Callers 2

connectMethod · 0.95
_handle_eio_connectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected