Skip to content

Commit ba0f577

Browse files
committed
Adds throws doc
1 parent 7868ead commit ba0f577

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/NetworkService+Async.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public extension NetworkService {
2626
- parameter resource: The resource you want to fetch.
2727

2828
- returns: a touple containing the parsed result and the HTTP response
29+
- Throws: A `NetworkError`
2930
*/
3031
@discardableResult
3132
func request<Result>(_ resource: Resource<Result>) async throws -> (Result, HTTPURLResponse) {

0 commit comments

Comments
 (0)