File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Foundation/URLSession/http Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import CoreFoundation
20
20
import Dispatch
21
21
22
22
23
- /// Turn `NSData ` into `DispatchData`
23
+ /// Turn `Data ` into `DispatchData`
24
24
internal func createDispatchData( _ data: Data ) -> DispatchData {
25
25
//TODO: Avoid copying data
26
26
let buffer = UnsafeRawBufferPointer ( start: data. _backing. bytes,
Original file line number Diff line number Diff line change @@ -350,8 +350,7 @@ fileprivate extension URLSession._MultiHandle {
350
350
timeoutTimerFired ( )
351
351
case . milliseconds( let milliseconds) :
352
352
if ( timeoutSource == nil ) || timeoutSource!. milliseconds != milliseconds {
353
- //TODO: Could simply change the existing timer by calling
354
- // DispatchSourceTimer() again.
353
+ //TODO: Could simply change the existing timer by using DispatchSourceTimer again.
355
354
let block = DispatchWorkItem { [ weak self] in
356
355
self ? . timeoutTimerFired ( )
357
356
}
You can’t perform that action at this time.
0 commit comments