how to cancel a previous requests when new request come from the same user in the same session

Viewed 2303

We're building a rest api using aiohttp. Our app is designed so that user sending requests more frequently than receiving responses (because of time of calculation). For user is important the result of the latest request only. Is it possible to stop calculations on outdated requests?

Thank you

2 Answers
Related