Skip to content

Commit 449823b

Browse files
Add escaping attribute on IO completion handlers.
1 parent cce8bfb commit 449823b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/swift/IO.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public extension DispatchIO {
5050
type: StreamType,
5151
fileDescriptor: Int32,
5252
queue: DispatchQueue,
53-
cleanupHandler: (_ error: Int32) -> Void)
53+
cleanupHandler: @escaping (_ error: Int32) -> Void)
5454
{
5555
self.init(__type: type.rawValue, fd: fileDescriptor, queue: queue, handler: cleanupHandler)
5656
}
@@ -61,7 +61,7 @@ public extension DispatchIO {
6161
oflag: Int32,
6262
mode: mode_t,
6363
queue: DispatchQueue,
64-
cleanupHandler: (_ error: Int32) -> Void)
64+
cleanupHandler: @escaping (_ error: Int32) -> Void)
6565
{
6666
self.init(__type: type.rawValue, path: path, oflag: oflag, mode: mode, queue: queue, handler: cleanupHandler)
6767
}
@@ -70,7 +70,7 @@ public extension DispatchIO {
7070
type: StreamType,
7171
io: DispatchIO,
7272
queue: DispatchQueue,
73-
cleanupHandler: (_ error: Int32) -> Void)
73+
cleanupHandler: @escaping (_ error: Int32) -> Void)
7474
{
7575
self.init(__type: type.rawValue, io: io, queue: queue, handler: cleanupHandler)
7676
}

0 commit comments

Comments
 (0)