Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/swift/IO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extension DispatchIO {

public convenience init(
type: StreamType,
fileDescriptor: Int32,
fileDescriptor: dispatch_fd_t,
queue: DispatchQueue,
cleanupHandler: @escaping (_ error: Int32) -> Void)
{
Expand Down
2 changes: 1 addition & 1 deletion src/swift/Private.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public func dispatch_queue_create_with_target(_ label: UnsafePointer<Int8>?, _ a
}

@available(*, unavailable, renamed:"DispatchIO.init(type:fileDescriptor:queue:cleanupHandler:)")
public func dispatch_io_create(_ type: UInt, _ fd: Int32, _ queue: DispatchQueue, _ cleanup_handler: @escaping (Int32) -> Void) -> DispatchIO
public func dispatch_io_create(_ type: UInt, _ fd: dispatch_fd_t, _ queue: DispatchQueue, _ cleanup_handler: @escaping (Int32) -> Void) -> DispatchIO
{
fatalError()
}
Expand Down
2 changes: 1 addition & 1 deletion src/swift/Wrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class DispatchIO : DispatchObject {
return unsafeBitCast(__wrapped, to: dispatch_object_t.self)
}

internal init(__type: UInt, fd: Int32, queue: DispatchQueue,
internal init(__type: UInt, fd: dispatch_fd_t, queue: DispatchQueue,
handler: @escaping (_ error: Int32) -> Void) {
__wrapped = dispatch_io_create(dispatch_io_type_t(__type), dispatch_fd_t(fd), queue.__wrapped, handler)
}
Expand Down