---
title: DispatchQueue.AutoreleaseFrequency.workItem
framework: dispatch
role: symbol
role_heading: Case
path: dispatch/dispatchqueue/autoreleasefrequency/workitem
---

# DispatchQueue.AutoreleaseFrequency.workItem

The queue configures an autorelease pool before the execution of a block, and releases the objects in that pool after the block finishes executing.

## Declaration

```swift
case workItem
```

## See Also

### Autorelease Frequencies

- [DispatchQueue.AutoreleaseFrequency.inherit](dispatch/dispatchqueue/autoreleasefrequency/inherit.md)
- [DispatchQueue.AutoreleaseFrequency.never](dispatch/dispatchqueue/autoreleasefrequency/never.md)
