https://pulumi.com logo
#python
Title
h

high-translator-22614

07/13/2019, 6:38 PM
if
Output.apply()
takes an async function as well, that might be the right thing? I'm not sure it can
w

white-balloon-205

07/13/2019, 9:11 PM
Yes - it can. Specifically the function returned from the callback passed to
apply
can return a Future and it will be awaited as part of resolving the Output.
h

high-translator-22614

07/13/2019, 9:13 PM
does it have to be a
Future
or any awaitable?
(does this have to do with the thing where pulumi does bad things with non-Future awaitables?)
w

white-balloon-205

07/13/2019, 9:34 PM
h

high-translator-22614

07/13/2019, 10:19 PM
oh cool! I've had the problem where python will yell because pulumi will
await
on stuff more than once, which breaks with bare `coroutine`s (but not `Future`s based on them)
3 Views