Skip to content

Instantly share code, notes, and snippets.

@andreafortuna
Created February 7, 2016 14:39
Show Gist options
  • Save andreafortuna/c11f197cb2f1e357ee87 to your computer and use it in GitHub Desktop.
Save andreafortuna/c11f197cb2f1e357ee87 to your computer and use it in GitHub Desktop.
var myWorker = new Worker('/path/operazioniDaEseguire.js');
myWorker.onmessage = function(event) {
console.log('Fatto, ecco i dati!', event.data);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment