mpp-frontend-dev/workerTimer.js

6 lines
131 B
JavaScript
Executable File

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