From 185c0ab39225e1c6d45122626f90e79c2f2f3cc4 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 28 Feb 2020 15:23:45 +0100 Subject: Make onExit suspending --- .../atlarge/opendc/compute/virt/driver/hypervisor/VmServerContext.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc') diff --git a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/VmServerContext.kt b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/VmServerContext.kt index f8fb2033..60fdf082 100644 --- a/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/VmServerContext.kt +++ b/opendc/opendc-compute/src/main/kotlin/com/atlarge/opendc/compute/virt/driver/hypervisor/VmServerContext.kt @@ -22,7 +22,7 @@ class VmServerContext( override var server: Server, val monitor: ServerMonitor, val scheduler: VmScheduler, - val onExit: () -> Unit, + val onExit: suspend () -> Unit, ctx: SimulationContext ) : ServerManagementContext { private var initialized: Boolean = false -- cgit v1.2.3