Skip to content

Instantly share code, notes, and snippets.

@minustime
Created October 18, 2019 18:36
Show Gist options
  • Select an option

  • Save minustime/0540d41cd300a979436fa08b8bbba6f9 to your computer and use it in GitHub Desktop.

Select an option

Save minustime/0540d41cd300a979436fa08b8bbba6f9 to your computer and use it in GitHub Desktop.
// Extract BX value
"rxx=1xkasqt9aka.1nekmbr1&v=1; GUCS=AUxHjsOA; BX=89bjrhten2bip&b=3&s=20; GUC=AQEBAQFdcnReRUIgDQTM&s=AQAAAFvErWag&g=XXEuZA; firstview=1567698522; breaking-news=3"
// What does this function do?
const a = b => new Promise(c => setTimeout(c, 200, b * 2));
// In serial
// a(1)
// a(1)
// a(1)
// Make run in parallel
(async function() {
// Your code here
const results = '';
console.log(results);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment