mpp-frontend-melee/include/workerTimer.js

7 lines
133 B
JavaScript

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