---
title: "init(type:path:oflag:mode:queue:cleanupHandler:)"
framework: dispatch
role: symbol
role_heading: Initializer
path: "dispatch/dispatchio/init(type:path:oflag:mode:queue:cleanuphandler:)-25rlb"
---

# init(type:path:oflag:mode:queue:cleanupHandler:)

## Declaration

```swift
convenience init(type: DispatchIO.StreamType, path: UnsafePointer<Int8>, oflag: Int32, mode: mode_t, queue: DispatchQueue, cleanupHandler: @escaping (Int32) -> Void)
```
