Skip to content

Instantly share code, notes, and snippets.

View d3x0r's full-sized avatar

Jim B d3x0r

  • Las Vegas
View GitHub Profile
@d3x0r
d3x0r / script.js
Last active April 13, 2022 18:23 — forked from onosendi/script.js
function sleep() {
return new Promise((resolve) => {
setTimeout(resolve, 2000);
});
}
async function foo() {
while(1) {
const bar = // really big array
await sleep();