MCPcopy Create free account
hub / github.com/Moli-X/Resources / delay

Method delay

Script/Hzh.js:322–325  ·  view source on GitHub ↗
(t, v)

Source from the content-addressed store, hash-verified

320 this.initCache();
321
322 const delay = (t, v) =>
323 new Promise(function (resolve) {
324 setTimeout(resolve.bind(null, v), t);
325 });
326
327 Promise.prototype.delay = function (t) {
328 return this.then(function (v) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected