Created
June 4, 2016 19:00
-
-
Save deebloo/0086b456f07af830c3311b9b346f0cb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myWorker = $worker().create(function () { | |
self.postMessage('Hello World'); | |
}); | |
myWorker.run().then(function (e) { | |
console.log(e.data); // 'Hello World' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment