Using asynchronous programming to call a API in background thread using streamlit

If youโ€™re creating a debugging post, please include the following info:
I am running the app locally.

Where i am trying to trigger call 2 API calls asynchronously which i wanted to run as background threads
.