Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def handler(self):
message = "hello world\n"
for value in appier.sleep(3.0): yield value
message += "timeout: %.2f\n" % 3.0
future = appier.build_future()
for value in self.calculator(future, 2, 2): yield value
message += "result: %d\n" % future.result()
yield message
def handler_partial(self):
yield "hello world\n"
for value in appier.sleep(3.0): yield value
yield "timeout: %.2f\n" % 3.0
result = appier.build_future()
for value in self.calculator(result, 2, 2): yield value
yield "result: %d\n" % result.result()