From 454306e00368d7efad0f53e9f6f354162cb22094 Mon Sep 17 00:00:00 2001 From: bram Date: Tue, 4 Mar 2025 23:28:24 -0800 Subject: [PATCH] V9.1.1 --- CHANGELOG.md | 4 ++++ README.md | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed8dadf..b28026d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 9.1.1 +* Adds optional `group` parameter to `resumeAll` +* Fixes concurrency bugs in Android + ## 9.1.0 * Adds `pauseAll`, `cancelAll` and `resumeAll` * Improves handling `enqueuAll` to not starve the UI thread diff --git a/README.md b/README.md index 151513d..5a2635a 100644 --- a/README.md +++ b/README.md @@ -750,7 +750,7 @@ To cancel, pause or resume a task, call: * `pause` to attempt to pause a task. Pausing is only possible for download GET requests, only if the `Task.allowPause` field is true, and only if the server supports pause/resume. Soon after the task is running (`TaskStatus.running`) you can call `taskCanResume` which will return a Future that resolves to `true` if the server appears capable of pause & resume. If it is not, then `pause` will have no effect and return false * `pauseAll` to attempt to pause a all tasks currently running, a specific list of tasks, or all tasks in a `group`. Returns a list of tasks that were paused * `resume` to resume a previously paused task (or certain failed tasks), which returns true if resume appears feasible. The task status will follow the same sequence as a newly enqueued task. If resuming turns out to be not feasible (e.g. the operating system deleted the temp file with the partial download) then the task will either restart as a normal download, or fail. -* `resumeAll` to resume all tasks currently paused, or a specific list of tasks. Returns a list of tasks that were resumed +* `resumeAll` to resume all tasks currently paused, a specific list of tasks, or all tasks in a `group`. Returns a list of tasks that were resumed To manage or query the queue of waiting or running tasks, call: diff --git a/pubspec.yaml b/pubspec.yaml index 18a6e5c..e54fdbf 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: background_downloader description: A multi-platform background file downloader and uploader. Define the task, enqueue and monitor progress -version: 9.1.0 +version: 9.1.1 repository: https://github.com/781flyingdutchman/background_downloader environment: