<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Virtualization",
  "identifier" : "/documentation/Virtualization/VZVirtualMachine/resume(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Virtualization"
    ],
    "preciseIdentifier" : "s:So16VZVirtualMachineC14VirtualizationE6resume17completionHandleryys6ResultOyyts5Error_pGc_tF"
  },
  "title" : "resume(completionHandler:)"
}
-->

# resume(completionHandler:)

Resumes a paused VM and notifies the specified completion handler of the results.

```
func resume(completionHandler: @escaping (Result<Void, any Error>) -> Void)
```

## Parameters

`completionHandler`

The block to call with the results of the resume attempt. This block has no return value and has one <doc://com.apple.documentation/documentation/Foundation/NSError> object as its parameter. The completion handler returns an error object when the VM fails to resume.

- result: A result type that contains an error object when the VM fails to resume.

## Discussion

Call this method to resume a VM that’s in the [`VZVirtualMachine.State.paused`](/documentation/Virtualization/VZVirtualMachine/State-swift.enum/paused) state.

---

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)