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