bebaoboy / advancedmobiledev_studenthub_20127600_20127004_20127171

🎉Made by us🎉. Product StudentHub is a university market place to connect high-skilled student and company on a real-world project. ✅ CH PLAY: https://play.google.com/store/apps/details?id=com.bebaoboyjonnathan.studenthub&hl=en-US&ah=uCvA9Cv96TqOEe48EEt4sB3U3fk
https://advmobiledev-studenthub-clc20.web.app
MIT License
2 stars 0 forks source link

Dio will combine request time if multiple requests are called at the same time #61

Closed bebaoboy closed 2 months ago

bebaoboy commented 2 months ago

Expected: Dio will execute each request sequentially to minimize delay time between requests.

Actual result: Dio will combine request time if multiple requests are called at the same time

Solution:

bebaoboy commented 2 months ago

Fixed in commit #e4f3174, code here Using QueueInterceptorWrapper to make all the incoming the request queue while dio is resolving another request.

Caveat: Response time maybe longer for incoming queue, need to tell user about this by setting loading text.