is there a way to `await` an Output<>
# general
b
is there a way to
await
an Output<>
c
Copy code
const mainOutput: any = await new Promise((resolve, reject) => {
    mainStackRef.getOutput('output').apply(t => resolve(t))
  })
That's how we do it, but it only works when the output is already known, e.g. output of another stack, you need to use apply on output if it's unknown beforehand
b
ah interesting thanks
didnt think of that