Skip to content

Commit

Permalink
Merge pull request #17 from Lickability/task/exposing-progressState
Browse files Browse the repository at this point in the history
Added a progress property to the NetworkSessionDataTask
  • Loading branch information
ashlirankin authored Oct 15, 2024
2 parents 424a971 + daf4ba9 commit c7013a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/Networking/NetworkSessionDataTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import Foundation

/// Describes a network session task that can be performed. This protocol has a similar API to `URLSessionDataTask` for the purpose of mocking.
public protocol NetworkSessionDataTask {


/// Progress object which represents the task progress. It can be used for task progress tracking.
///
/// - Note: This documentation is pulled directly from `URLSessionTask`.
var progress: Progress { get }

/// Resumes the task, if it is suspended.
///
/// - Note: This documentation is pulled directly from `URLSessionTask`.
Expand Down

0 comments on commit c7013a3

Please sign in to comment.