#NEWLINE# def call_or_cast( self , method , args = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , nowait = False , **kwargs ) : #NEWLINE# #INDENT# 'Apply remote `method` asynchronously or synchronously depending\n        on the value of `nowait`.\n\n        :param method: The name of the remote method to perform.\n        :param args: Dictionary of arguments for the method.\n        :keyword nowait: If false the call will block until the result\n           is available and return it (default), if true the call will be\n           non-blocking and no result will be returned.\n        :keyword retry: If set to true then message sending will be retried\n          in the event of connection failures. Default is decided by the\n          :attr:`retry` attributed.\n        :keyword retry_policy: Override retry policies.\n           See :attr:`retry_policy`.  This must be a dictionary, and keys will\n           be merged with the default retry policy.\n        :keyword timeout: Timeout to wait for replies in seconds as a float\n           (**only relevant in blocking mode**).\n        :keyword limit: Limit number of replies to wait for\n           (**only relevant in blocking mode**).\n        :keyword callback: If provided, this callback will be called for every\n          reply received (**only relevant in blocking mode**).\n        :keyword \\*\\*props: Additional message properties.\n           See :meth:`kombu.Producer.publish`.\n\n        ' #NEWLINE# return ( ( nowait and self . cast ) or self . call ) ( method , nowait , ** kwargs )