docs: function getPerformOpenAllScanMethod(bundle) {
          return function performOpenAllScanMethod(scanMethod, cb) {
              debugOpenAll('in performOpenAllScanMethod');
              var scanIterations = [];
              var numAttempts = scanMethod.numAttempts;
              for(var i = 0; i < numAttempts; i++) {
                  scanIterations.push(scanMethod);
              }
  
              var performAsync = scanMethod.async;
  
              function finishedScanning() {
                  debugOpenAll('Finished performing scanMethod...');
                  // We are finished scanning...
                  debugOpenAll(
                      'Finished performing openAll scans, sm:',
                      scanMethod.deviceType,
                      scanMethod.connectionType
                  );
                  cb();
              }
  
              if(performAsync) {
                  async.each(
                      scanIterations,
                      getPerformOpenAllScanIteration(bundle),
                      finishedScanning
                  );
              } else {
                  async.eachSeries(
                      scanIterations,
                      getPerformOpenAllScanIteration(bundle),
                      finishedScanning
                  );
              }
          }
      }