Contents

getAllTasks(completionHandler:)

Asynchronously calls a completion callback with all tasks in a session

Declaration

func getAllTasks(completionHandler: @escaping  @Sendable ([URLSessionTask]) -> Void)
var allTasks: [URLSessionTask] { get async }

Parameters

  • completionHandler:

    The completion handler to call with the list of tasks.

See Also

Managing the session