Initializerswift 6.0.3Dispatch
init(type:io:queue:cleanupHandler:)
convenience init(type: DispatchIO.StreamType, io: DispatchIO, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)
convenience init(type: DispatchIO.StreamType, io: DispatchIO, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)
s8Dispatch0A2IOC4type2io5queue14cleanupHandlerA2C10StreamTypeO_AcA0A5QueueCys5Int32Vctcfc
What are these?379A4
import Dispatch
class DispatchIO
enum StreamType
class DispatchQueue
@frozen struct Int32
A 32-bit signed integer value type.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
convenience init(type: DispatchIO.StreamType, fileDescriptor: dispatch_fd_t, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)
convenience init?(type: DispatchIO.StreamType, path: UnsafePointer<Int8>, oflag: Int32, mode: mode_t, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)
class func read(fromFileDescriptor: Int32, maxLength: Int, runningHandlerOn queue: DispatchQueue, handler: @escaping (DispatchData, Int32) -> Void)
class func write(toFileDescriptor: Int32, data: DispatchData, runningHandlerOn queue: DispatchQueue, handler: @escaping (DispatchData?, Int32) -> Void)
var fileDescriptor: Int32 { get }
func barrier(execute: @escaping () -> ())
func close(flags: DispatchIO.CloseFlags = [])
func read(offset: off_t, length: Int, queue: DispatchQueue, ioHandler: @escaping (Bool, DispatchData?, Int32) -> Void)
func setInterval(interval: DispatchTimeInterval, flags: DispatchIO.IntervalFlags = [])
func setLimit(highWater: Int)
func setLimit(lowWater: Int)
func write(offset: off_t, data: DispatchData, queue: DispatchQueue, ioHandler: @escaping (Bool, DispatchData?, Int32) -> Void)
struct CloseFlags
struct IntervalFlags
convenience init(type: DispatchIO.StreamType, path: UnsafePointer<Int8>, oflag: Int32, mode: mode_t, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)