mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Swift 3.2 (Swift 4 in Swift 3 mode) needs TCO workaround
This commit is contained in:
1 parent
02ff223eba
commit
2522fa68aa
1 file changed
+1
-1
@@ -44,7 +44,7 @@ final class PendingWrite {
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=4.0)
|
||||
#if swift(>=3.2)
|
||||
/* workaround for https://bugs.swift.org/browse/SR-5106 */
|
||||
func doPendingWriteVectorOperation(pending: PendingWrite?, count: Int, iovecs: UnsafeMutableBufferPointer<IOVector>, _ fn: (UnsafeBufferPointer<IOVector>) -> Int) -> Int {
|
||||
return withoutActuallyEscaping(fn) { fn in
|
||||
|
||||
Reference in new issue
Block a user