Skip to content

Commit ee1eeba

Browse files
committed
import FoundationNetworking
1 parent 3c224f3 commit ee1eeba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/OpenAI/Private/URLSessionDelegateProtocol.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
import Foundation
99

10+
#if canImport(FoundationNetworking)
11+
import FoundationNetworking
12+
#endif
13+
1014
protocol URLSessionDelegateProtocol: Sendable { // Sendable to make a better match with URLSessionDelegate, it's sendable too
1115
func urlSession(_ session: URLSessionProtocol, task: URLSessionTaskProtocol, didCompleteWithError error: Error?)
1216

0 commit comments

Comments
 (0)