MCPcopy Create free account
hub / github.com/microsoft/SandDance / poll

Function poll

docs/app/js/sanddance-app.js:122050–122055  ·  view source on GitHub ↗
(value3)

Source from the content-addressed store, hash-verified

122048 const loader = this;
122049 return new Promise((accept)=>{
122050 function poll(value3) {
122051 if (!loader.pending()) accept(value3);
122052 else setTimeout(()=>{
122053 poll(true);
122054 }, 10);
122055 }
122056 poll(false);
122057 });
122058 }

Callers 1

readyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected