src/index.js
function many (urls, options = {}) {
  let flowMethod = (options.waitTime) ? flow.series : flow.parallel

  // Call the single method while respecting the wait time in between tasks
  const callSingle = (url) => single(url, options)
    .then(content => wait(() => content, options.waitTime))

  // Map over the urls and call them using the method the user chose
  let promises = urls.map(url => () => callSingle(url))
  return flowMethod(promises)
}
function many (urls, options = {}) {
  let flowMethod = (options.waitTime) ? flow.series : flow.parallel

  // Call the single method while respecting the wait time in between tasks
  const callSingle = (url) => single(url, options)
    .then(content => wait(() => content, options.waitTime))

  // Map over the urls and call them using the method the user chose
  let promises = urls.map(url => () => callSingle(url))
  return flowMethod(promises)
}
function many ( urls , options = { } ) { let flowMethod = ( options . waitTime ) ? flow . series : flow . parallel // Call the single method while respecting the wait time in between tasks const callSingle = ( url ) => single ( url , options ) . then ( content => wait ( ( ) => content , options . waitTime ) ) // Map over the urls and call them using the method the user chose let promises = urls . map ( url => ( ) => callSingle ( url ) ) return flowMethod ( promises ) }
Request multiple pages
Request multiple pages