Instance Method インスタンスメソッド

getTasksWithCompletionHandler(_:)

Asynchronously calls a completion callback with all data, upload, and download tasks in a session. 非同期に、ある完了コールバックをあるセッションにおけるデータ、アップロード、そしてダウンロードタスク全てをつかって呼び出します。

Declaration 宣言

func getTasksWithCompletionHandler(_ completionHandler: @escaping ([URLSessionDataTask], [URLSessionUploadTask], [URLSessionDownloadTask]) -> Void)

Parameters パラメータ

completionHandler

The completion handler to call with the list of tasks. This handler is executed on the delegate queue. タスクそれらからなるリストを使って呼び出すことになる完了ハンドラ。このハンドラは、委任先キュー上で遂行されます。

Discussion 議論

The arrays passed to the completion handler contain any tasks that you have created within the session, not including any tasks that have been invalidated after completing, failing, or being cancelled. 完了ハンドラに渡される配列は、あなたがそのセッション内で作成したあらゆるタスクを含みます、しかし完了、失敗、または取り消しされる後に無効にされたあらゆるタスクを含みません。

See Also 参照

Managing the Session セッションを管理する