Skip to content

Commit

Permalink
Target task callbacks to the session's queue
Browse files Browse the repository at this point in the history
  • Loading branch information
cysp committed May 5, 2019
1 parent 5f3135d commit 9e4b455
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/DVR/SessionDataTask.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ final class SessionDataTask: URLSessionDataTask {
weak var session: Session!
let request: URLRequest
let completion: Completion?
private let queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", attributes: [])
private let queue: DispatchQueue
private var interaction: Interaction?

override var response: Foundation.URLResponse? {
Expand All @@ -26,6 +26,7 @@ final class SessionDataTask: URLSessionDataTask {
self.session = session
self.request = request
self.completion = completion
queue = DispatchQueue(label: "com.venmo.DVR.sessionDataTaskQueue", qos: .userInitiated, attributes: [], target: session.delegateQueue.underlyingQueue)
}


Expand Down

0 comments on commit 9e4b455

Please sign in to comment.