public async Task <TelloResponse> SendAsync(Command command) { if (command.Immediate) { return(new TelloResponse(await _transceiver.SendAsync(new TelloRequest(command)))); } else { Enqueue(command); return(await Task.FromResult <TelloResponse>(null)); } }
public async Task <TelloResponse> SendAsync(Command command) { if (command.Immediate) { return(new TelloResponse(await _transceiver.SendAsync(new TelloRequest(command)))); } else { Debug.WriteLine($"{nameof(SendAsync)}: '{command}' command queue is {_commands.Count} deep."); Enqueue(command); return(await Task.FromResult <TelloResponse>(null)); } }