Wait for background task to complete?

Gotcha. I wasn’t sure how to approach this since I’m essentially just trying to asynchronously access API’s while the main program does the rest of what’s needed, and once it’s done then the main program can just grab the necessary values like a sort of coroutine since those API calls aren’t immediately necessary and can take a bit between Anvil’s server spin-up time and the requests.

I wasn’t sure if async and await was doable in Anvil either so I opted for what was documented.

1 Like