Ah in that case you have multiple things

Ah, in that case you have multiple things you need to await (cause you need to fetch the data and then store it in cache). You could put it all in an async function like so:
const foo = async () => {
  // do something
}
// Then just call foo without the await
foo();

There is probably a more clean way to write this, but I'm not that great with JS syntax. Or you could use
waitUntil
, but I'm not sure how you'd do that in itty durable.
Was this page helpful?