Closed srdanrasic closed 1 year ago
Can you clarify why you need to create and manage task ids?
Because NSURLSessionDataTask
/NSURLSessionTask
does not implement taskIdentifier
property.
If you try executing
let task = NSURLSessionDataTask()
print(task.taskIdentifier)
your program will crash. I guess under the hood it's implemented as Objective-C @dynamic
property.
That's why I need to handle task identifiers and other properties that I've overridden manually.
Can Alamofire be used with DVR even without this PR? Supposedly this Alamofire PR allows DVR to be used with it.
@phatmann the Alamofire PR you mention is absolutely advancing the goal of DVR + Alamofire. What it does is add a failable init to configure a Manager
with a different Session
. That's great and it works great. On DVR's side there are things required in order to work:
Let me know if I can do anything to advance this PR and give it a chance to be merged. It would be great to have that Alamofire supported.
Got the same error as @srdanrasic:
"-[DVR.SessionDataTask taskIdentifier]: unrecognized selector sent to instance 0x60b000064a60"
This enables DVR to work with Alamofire.