I have a question for example I've created a Python flask app and everything works well, but here's a thing one of the functions take around a minute to two minutes to complete.
Is there a way to make user not wait 1 - 2 minutes for a function to complete? for example user would use app normally on front end, make request to backend API and use the rest of the app while that request is completed? has anyone done anything similar and are there libraries for such cases when there are long requests? or is that due to how my functions are structured?