The Task - URLSession seam
Swift Forums
The Task - URLSession seam
Coalescing same URL requests (dedup) with proper cancellation and priority seems to need ~150 lines and a hand rolled continuation gate. Is that expected at the async/await ↔ URLSession seam, or is there a first party primitive I’m missing? The following is untested AI pseudo code from Fable 5.1, so please consider this as just a prototype. import Foundation /// Coalesces concurrent requests for the same URL into one transfer, while /// holding the URLSessionTask so joined callers can cance...
0 comments
No comments yet.