lingochamp / okdownload

A Reliable, Flexible, Fast and Powerful download engine.
Apache License 2.0
5.19k stars 776 forks source link

Cancel individual task in bunch? #462

Open Sternbach-Software opened 3 years ago

Sternbach-Software commented 3 years ago

If I start a bunch of tasks with DownloadTask.enqueue(tasks, listener) is there a way I can cancel an individual task? If I keep a reference to that task before passing the list to enqueue, can I call task.cancel() and it will cancel that individual task (even though it was passed to enqueue)?