flutter_request_scheduler 1.0.1
flutter_request_scheduler: ^1.0.1 copied to clipboard
Production-ready request scheduler for Flutter/Dart. Controls concurrency, queues, prioritizes, deduplicates, retries, and debounces API calls to prevent UI lag, frame drops, and freezing under heavy [...]
Changelog #
1.0.1 #
Initial stable release
- Production-ready request scheduler for Flutter/Dart.
- Concurrency control with configurable
maxConcurrent. - Priority-based FIFO task scheduling.
- Request deduplication using
deduplicationKey. - Automatic retry with exponential backoff + jitter (
scheduleWithRetryandretrymethods). - Timeout and cooperative cancellation support.
- Built-in debounce and throttle utilities.
- Real-time metrics tracking (queue size, active tasks, average response time).
- Lifecycle hooks (
onTaskStart,onTaskComplete,onTaskError). - Full null-safety and clean architecture.
- Comprehensive unit tests for concurrency, deduplication, and retry logic.
- Zero UI thread blocking — prevents frame drops under heavy API load.
Breaking Changes #
- None (initial release)
New Features #
RequestSchedulermain class with intuitive API (schedule,retry,scheduleWithRetry,debounce,throttle)ScheduledTaskwrapper with easy cancellation- Priority enum (
low,normal,high)
Bug Fixes #
- Fixed race conditions in worker pool and queue processing
- Resolved type issues in retry wrapper
- Improved cancellation safety
0.9.0 (Pre-release) #
- Initial development version