mpp-dev-but-mppnet/public/workerTimer.js

6 lines
134 B
JavaScript

self.onmessage = function (event) {
setTimeout(function () {
postMessage({ args: event.data.args });
}, event.data.delay);
};