/// <summary> /// Executes the commands asynchronous. /// </summary> public async void ExecuteCommandsAsync() { while (this.Count > 0) { R2Command cmd = this.Dequeue(); string result = await pipe.RunCommandAsync(cmd.Command); cmd.Callback(result); } }