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

Function dispatch

Lib/multiprocessing/managers.py:86–97  ·  view source on GitHub ↗

Send a message to manager using connection `c` and return response

(c, id, methodname, args=(), kwds={})

Source from the content-addressed store, hash-verified

84#
85
86def dispatch(c, id, methodname, args=(), kwds={}):
87 '''
88 Send a message to manager using connection `c` and return response
89 '''
90 c.send((id, methodname, args, kwds))
91 kind, result = c.recv()
92 if kind == '#RETURN':
93 return result
94 try:
95 raise convert_to_error(kind, result)
96 finally:
97 del result # break reference cycle
98
99def convert_to_error(kind, result):
100 if kind == '#ERROR':

Callers 13

connectMethod · 0.70
_createMethod · 0.70
_debug_infoMethod · 0.70
_number_of_objectsMethod · 0.70
_finalize_managerMethod · 0.70
tempMethod · 0.70
_connectMethod · 0.70
_callmethodMethod · 0.70
_increfMethod · 0.70
_decrefMethod · 0.70
AutoProxyFunction · 0.70
SharedMemoryMethod · 0.70

Calls 3

convert_to_errorFunction · 0.85
sendMethod · 0.45
recvMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…