api_queue_handler 1.0.5 copy "api_queue_handler: ^1.0.5" to clipboard
api_queue_handler: ^1.0.5 copied to clipboard

Queue up your API requests effortlessly, ensuring they are processed one after the other.

Queue up your API requests effortlessly, ensuring they are processed one after the other. #

    import 'package:api_queue_handler/api_queue_handler.dart';
   
   ApiManager().initialize('Your base url');

   // When we don't want to use 'await', but we want to receive the results in order.
   // For example,This will take longer, but it will be finished first.
   ApiManager().request(endpoint: 'a',runParallel:false).then((value){});
   // It will be finished second.
   ApiManager().request(endpoint: 'b',runParallel:false).then((value){});
   

1
likes
130
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

Queue up your API requests effortlessly, ensuring they are processed one after the other.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on api_queue_handler