if `Output.apply()` takes an async function as wel...
# python
h
if
Output.apply()
takes an async function as well, that might be the right thing? I'm not sure it can
w
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
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
h
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)