MCPcopy Index your code
hub / github.com/python/cpython / settimeout

Method settimeout

Lib/asyncio/trsock.py:85–89  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

83 return self._sock.getsockbyname()
84
85 def settimeout(self, value):
86 if value == 0:
87 return
88 raise ValueError(
89 'settimeout(): only 0 timeout is allowed on transport sockets')
90
91 def gettimeout(self):
92 return 0

Callers 2

finish_acceptMethod · 0.45
_get_accept_socketMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected