Exemple #1
0
class Proxy:
    def __init__(self, que):
        self.que = que
        self.sheduler = Sheduler(self.que)
        self.servant = Servant()
        self.sheduler.start()

    def execute(self, data):
        future_object = Future(data)
        execute_req = ExecuteRequest(future_object, self.servant)
        self.sheduler.add(execute_req)
        return future_object
Exemple #2
0
 def __init__(self, que):
     self.que = que
     self.sheduler = Sheduler(self.que)
     self.servant = Servant()
     self.sheduler.start()