proud-artist-4864
03/10/2019, 10:43 AMincalculable-sundown-82514
03/11/2019, 5:53 PMasync for
to iterate over asynchronous generators - do you think that would help in your case?proud-artist-4864
03/13/2019, 6:22 AMincalculable-sundown-82514
03/21/2019, 9:35 PMIt’s doable, but clumsy. What I’d really like is if “get_route_tables” returned a list of route53.RouteTables, that can be iterated fine 🙂I hear you, but because the rest of Pulumi is so asynchronous, I’m afraid that can’t be done without seriously regressing other aspects of deployment, which is unfortunate. You can use
asyncio.ensure_future
to launch your own async def functions, though - you just have to be sure to hook up the future it returns to Pulumi in some way