(c, id, methodname, args=(), kwds={})
Send a message to manager using connection `c` and return response
Send a message to manager using connection `c` and return response
Send a message to manager using connection c and return response
def dispatch(c, id, methodname, args=(), kwds={}):
    '''
    Send a message to manager using connection `c` and return response
    '''
    c.send((id, methodname, args, kwds))
    kind, result = c.recv()
    if kind == '#RETURN':
        return result
    raise convert_to_error(kind, result)
def dispatch ( c , id , methodname , args = ( ) , kwds = { } ) : c . send ( ( id , methodname , args , kwds ) ) kind , result = c . recv ( ) if kind == '#RETURN' : return result raise convert_to_error ( kind , result )