Untitled

 avatar
unknown
javascript
4 years ago
345 B
4
Indexable
(async() => {
  console.log("EDV waiting for variable");
  while( typeof tarteaucitron === "undefined"  ) // define the condition as you like
    await new Promise(resolve => setTimeout(resolve, 1000));
  console.log("EDV variable is now defined " + tarteaucitron.services);
})();
console.log("EDV above code doesn't block main function stack");
Editor is loading...