DispatchData.Deallocator.custom(_:_:) Use a custom deallocator. Declaration@preconcurrency case custom(DispatchQueue?, @Sendable () -> Void) See AlsoDeallocatorsDispatchData.Deallocator.freeDispatchData.Deallocator.unmap