meilisearch / meilisearch-dart

The Meilisearch API client written for Dart
https://meilisearch.com
MIT License
77 stars 26 forks source link

Add support of dio cancel tokens #373

Open vasilich6107 opened 7 months ago

vasilich6107 commented 7 months ago

Description In case of simple search input while user is typing I'm spawning new request and I want co cancel old one if it is in progress

ahmednfwela commented 6 months ago

since exposing dio's cancel token class would tightly couple this package with dio, what do you think about this solution?

https://stackoverflow.com/a/54905898/4009642