Skip to content

Commit

Permalink
chore: added recommendation doc to download managing
Browse files Browse the repository at this point in the history
  • Loading branch information
gajddo00 committed May 25, 2023
1 parent d6599ea commit 4f25236
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Networking/Core/DownloadAPIManaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import Foundation
public typealias DownloadResult = (URLSessionDownloadTask, Response)

/// A definition of an API layer with methods for handling data downloading.
/// Recommended to be used as singleton.
/// If you wish to use multiple instances, make sure you manually invalidate url session by calling the `invalidateSession` method.
public protocol DownloadAPIManaging {
/// List of all currently ongoing download tasks.
var allTasks: [URLSessionDownloadTask] { get async }
Expand Down

0 comments on commit 4f25236

Please sign in to comment.