The URL::DownloadTask::Listener returns the URL::DownloadTask, so you can continue processing it.
Would it be possible to add the targetFile or the URL to the DownloadTask? I assume in most of the use cases you will need that information. My use case is, when the download has finished, I want to move it from the temp dir to the actual media directory, since I don’t want unfinished downloads between the available media.
I can work around holding a map from DownloadTask to localFile, but it would be much simpler, if these two informations would be directly available from the DownloadTask.