Avatar
downloadTask の completion handler に渡される URL は
You must move this file or open it for reading before your completion handler returns. Otherwise, the file is deleted, and the data is lost.
という制約があるんですが、 https://developer.apple.com/documentation/foundation/urlsession/1411608-downloadtask 新しい download(...) async throws -> (URL, URLResponse) の場合ってどうなるんでしょう? API リファレンスには何も書いていない。 https://developer.apple.com/documentation/foundation/urlsession/3767355-download もし downloadTask と同じなら actor context の引き継ぎとかでキューに投入されてる間に消えてしまうし、そうでなければいつ削除されるんでしょう?