<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtioQueueElement/returnToQueue()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "c:objc(cs)VZVirtioQueueElement(im)returnToQueue"
  },
  "title" : "returnToQueue()"
}
-->

# returnToQueue()

Returns this element back to the guest.

```
func returnToQueue()
```

## Discussion

Use this method when you are done processing this element and return it to the guest.

Use this method together with the [`nextElement()`](/documentation/Virtualization/VZVirtioQueue/nextElement()) method to process the elements in the queue.

The element you pass to this method must be one that you obtained from calling the [`nextElement()`](/documentation/Virtualization/VZVirtioQueue/nextElement()) method.
Attempts to call this method more than once with the same element results in the framework raising an exception.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)