completeConfigure method

Future<List<CuppsCommandResponse>> completeConfigure(
  1. List<String> commands
)

Implementation

Future<List<CuppsCommandResponse>> completeConfigure(List<String> commands) async {
  List<CuppsCommandResponse> responses = [];
  _configuring =true;
  for(String command in commands){
    final res = await configure(command).timeout(const Duration(seconds: 12),onTimeout: (){
      return CuppsCommandResponse(msg: 'timeout', status: false);
    });
    responses.add(res);
  }
  _configuring =false;
  return responses;

}