Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fileprivate class AlamofireRequestBuilderConfiguration: @unchecked Sendable {
static let shared = AlamofireRequestBuilderConfiguration()

// Store manager to retain its reference
var managerStore = SynchronizedDictionary<String, Alamofire.Session>()
let managerStore = SynchronizedDictionary<String, Alamofire.Session>()
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class AlamofireRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fileprivate class AlamofireRequestBuilderConfiguration: @unchecked Sendable {
static let shared = AlamofireRequestBuilderConfiguration()

// Store manager to retain its reference
var managerStore = SynchronizedDictionary<String, Alamofire.Session>()
let managerStore = SynchronizedDictionary<String, Alamofire.Session>()
}

open class AlamofireRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fileprivate class AlamofireRequestBuilderConfiguration: @unchecked Sendable {
static let shared = AlamofireRequestBuilderConfiguration()

// Store manager to retain its reference
var managerStore = SynchronizedDictionary<String, Alamofire.Session>()
let managerStore = SynchronizedDictionary<String, Alamofire.Session>()
}

open class AlamofireRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

internal class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

internal struct SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {
internal class SynchronizedDictionary<K: Hashable, V> : @unchecked Sendable {

private var dictionary = [K: V]()
private let lock = NSRecursiveLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable {
let defaultURLSession: URLSession

// Store current URLCredential for every URLSessionTask
var credentialStore = SynchronizedDictionary<Int, URLCredential>()
let credentialStore = SynchronizedDictionary<Int, URLCredential>()
}

open class URLSessionRequestBuilder<T: Sendable>: RequestBuilder<T>, @unchecked Sendable {
Expand Down
Loading