This message was deleted.
# general
s
This message was deleted.
t
You should probably return a value from
doAsyncStuff
and assign it to
output
.
Copy code
export let output = doAsyncStuff();
async function doAsyncStuff(() => {
  ...
  return`${someResource.ingressHost}`;
});
Otherwise you might read
output
before it's ready.
b
ah, so an output can be a promise, and that promise's resolve value will be the value of the output?
t
yes. You can also wrap a promise into
pulumi.output
if you need to use it for inputs to other resources.