v1.0.1
New Interfaces
If you used
BaseDownloadTask#ready()
which is a deprecated method now, just migrate it toBaseDownloadTask#asInQueueTask():InQueueTask
andInQueueTask#enqueue()
.
- Add
BaseDownloadTask#asInQueueTask():InQueueTask
and DeprecatedBaseDownloadTask#ready()
: Declare the task is a queue task, what will be assembled by a queue which makes up of the samelistener
task and there is a methodInQueueTask#enqueue()
to enqueue this task to the global queue to ready for being assembled by the queue. The operation of methodInQueueTask#enqueue()
is the same to the Deprecated methodBaseDownloadTask#ready()
, we wrap theready()
method in this way just want you to know clearly: Only if the task belongs to a queue, you need to invoke this method otherwise if this task is an isolated task but you invoke this method, it's wrong and you will receive an exception(More detail reason please move to the exception thrown inDownloadTask#start
).
Fix
- Fix: Maybe occur an IllegalStateException when there are several isolated tasks and queues with the same
listener
object, and they are started in the different thread simultaneously. Closes #282 .