mirror of
https://github.com/apple/container.git
synced 2026-09-20 22:55:40 +00:00
Make vmm create protocol async (#338)
The `vmm.create` call is already made within an async function. This PR updates the protocol to allow other vmm implementations more flexibility in `create`. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
@@ -16,5 +16,5 @@
|
||||
|
||||
/// A protocol to implement for virtual machine isolated containers.
|
||||
public protocol VirtualMachineManager: Sendable {
|
||||
func create(container: Container) throws -> any VirtualMachineInstance
|
||||
func create(container: Container) async throws -> any VirtualMachineInstance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user