Contents

resume(completionHandler:)

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

Declaration

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 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 state.

See Also

Starting and stopping the VM