Open murad1981 opened 5 years ago
DispatchQueue..global(qos: .background)
is too low and weak. Should be at least DispatchQueue.global(qos: .default)
.
I agree that the work of ResourceLoaderDelegate
should be done on a global queue. At the same time, the delegate calls should be performed on the main queue.
@neekeetab I've changed to DispatchQueue.global(qos: .default)
and it's working fine.
@neekeetab I try this and mine still crashes. Any more info on this?
the following call
asset.resourceLoader.setDelegate
in eachinit
method, should use background queueDispatchQueue.global(qos: .background)
instead of main queue to prevent possible app freezes on the main thread which happened with me.