dio
dio copied to clipboard
fix(web): fix 'Future already completed' error when connectTimeout was set.
fix 'Future already completed' error when connectTimeout was set.
New Pull Request Checklist
- [x] I have read the Documentation
- [ ] I have searched for a similar pull request in the project and found none
- #1496
- #1470
- [x] I have updated this branch with the latest
develop
to avoid conflicts (via merge from master or rebase) - [ ] I have added the required tests to prove the fix/feature I am adding
- [ ] I have updated the documentation (if necessary)
- [ ] I have run the tests and they pass
This merge request fixes / refers to the following issues:
- #1536
- #1497
Pull Request Description
Use Timer
instead of Future.delay
to implement connectTimeout on Web.