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
def __init__(self, que): self.que = que self.sheduler = Sheduler(self.que) self.servant = Servant() self.sheduler.start()