예제 #1
0
 def send_cast(self, target, context, message, retry=None):
     with contextlib.closing(
             zmq_request.CastRequest(target,
                                     context=context,
                                     message=message,
                                     retry=retry)) as request:
         self.cast_publisher.send_request(request)
예제 #2
0
 def send_cast(self, target, context, message, retry=None):
     request = zmq_request.CastRequest(target,
                                       context=context,
                                       message=message,
                                       retry=retry)
     self.cast_publisher.send_cast(request)