private async Task <MowerResponseResult> TurnAfterTask(AsyncSmartLawnMowingMachineService service, Task task, string turnDirection) { task.Wait(); return(await service.Turn(turnDirection)); }
private async Task <MowerResponseResult> TurnBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service, string turnDirection) { Thread.Sleep(200); return(await service.Turn(turnDirection)); }