---
title: "DispatchData.Deallocator.custom(_:_:)"
framework: dispatch
role: symbol
role_heading: Case
path: "dispatch/dispatchdata/deallocator/custom(_:_:)"
---

# DispatchData.Deallocator.custom(_:_:)

Use a custom deallocator.

## Declaration

```swift
@preconcurrency case custom(DispatchQueue?, @Sendable () -> Void)
```

## See Also

### Deallocators

- [DispatchData.Deallocator.free](dispatch/dispatchdata/deallocator/free.md)
- [DispatchData.Deallocator.unmap](dispatch/dispatchdata/deallocator/unmap.md)
