Skip to content

Instantly share code, notes, and snippets.

View autioch's full-sized avatar

Jakub Szczepaniak autioch

  • Poznań, Poland
View GitHub Profile
@autioch
autioch / test.js
Last active May 16, 2017 13:39 — forked from barcicki/test.js
Call order test
/* What will be the console order. */
function busy(duration) {
const current = Date.now();
let future = Date.now();
while (future - current < duration) {
future = Date.now();
}
}