Пример #1
0
 private async Task <MowerResponseResult> MoveAfterTask(AsyncSmartLawnMowingMachineService service, Task task)
 {
     task.Wait();
     return(await service.Move());
 }
Пример #2
0
 private async Task <MowerResponseResult> MoveBeforeWorkIsComplete(AsyncSmartLawnMowingMachineService service)
 {
     Thread.Sleep(200);
     return(await service.Move());
 }