MCPcopy Index your code
hub / github.com/RustPython/RustPython / dispatch

Function dispatch

Lib/multiprocessing/managers.py:85–96  ·  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

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