---
title: "init(label:qos:attributes:autoreleaseFrequency:target:)"
framework: dispatch
role: symbol
role_heading: Initializer
path: "dispatch/dispatchqueue/init(label:qos:attributes:autoreleasefrequency:target:)"
---

# init(label:qos:attributes:autoreleaseFrequency:target:)

Creates a new dispatch queue to which you can submit blocks.

## Declaration

```swift
convenience init(label: String, qos: DispatchQoS = .unspecified, attributes: DispatchQueue.Attributes = [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency = .inherit, target: DispatchQueue? = nil)
```

## Parameters

- `label`: A string label to attach to the queue to uniquely identify it in debugging tools such as Instruments, sample, stackshots, and crash reports. Because applications, libraries, and frameworks can all create their own dispatch queues, a reverse-DNS naming style (com.example.myqueue) is recommended.
- `qos`: The quality-of-service level to associate with the queue. This value determines the priority at which the system schedules tasks for execution. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/DispatchQoS/QoSClass-swift.enum.
- `attributes`: The attributes to associate with the queue. Include the concurrent attribute to create a dispatch queue that executes tasks concurrently. If you omit that attribute, the dispatch queue executes tasks serially.
- `autoreleaseFrequency`: The frequency with which to autorelease objects created by the blocks that the queue schedules. For a list of possible values, see doc://com.apple.dispatch/documentation/Dispatch/DispatchQueue/AutoreleaseFrequency.
- `target`: The target queue on which to execute blocks. Specify DISPATCH_TARGET_QUEUE_DEFAULT if you want the system to provide a queue that is appropriate for the current object.

## See Also

### Creating a Dispatch Queue

- [main](dispatch/dispatchqueue/main.md)
- [global(qos:)](dispatch/dispatchqueue/global(qos:).md)
- [DispatchQoS.QoSClass](dispatch/dispatchqos/qosclass-swift.enum.md)
- [DispatchQueue.Attributes](dispatch/dispatchqueue/attributes.md)
- [DispatchQueue.AutoreleaseFrequency](dispatch/dispatchqueue/autoreleasefrequency.md)
- [OS_dispatch_queue_main](dispatch/os_dispatch_queue_main-swift.class.md)
- [OS_dispatch_queue_global](dispatch/os_dispatch_queue_global-swift.class.md)
- [DispatchSerialQueue](dispatch/dispatchserialqueue.md)
- [DispatchConcurrentQueue](dispatch/dispatchconcurrentqueue.md)
- [dispatch_queue_main_t](dispatch/dispatch_queue_main_t.md)
- [dispatch_queue_global_t](dispatch/dispatch_queue_global_t.md)
- [dispatch_queue_serial_t](dispatch/dispatch_queue_serial_t.md)
- [dispatch_queue_concurrent_t](dispatch/dispatch_queue_concurrent_t.md)
