async def get_greeting(self): global done, timer timer = Workflow.new_timer(5) futures = [ Async.function(self.greeting_activities.compose_greeting, 50), timer ] done, pending = await Async.any_of(futures)
async def get_greeting(self): future = Workflow.new_timer(5) await future