Contents

queue

The queue associated with this virtual machine.

Declaration

nonisolated var queue: dispatch_queue_t { get }

Discussion

This property is a reference to the queue the framework used to create the virtual machine when initialized using init(configuration:queue:). If not specified, the default is the main queue.

The property is accessible from any queue or actor.

Other properties or function calls on VZVirtualMachine must happen on this queue. The framework also invokes any completion handlers from asynchronous functions on this queue.

The following example shows use of the VZVirtualMachine.queue property to check to see if it’s possible to start a VM.

See Also

Getting the state of the VM