Created
August 14, 2013 19:17
-
-
Save calvinmetcalf/6234523 to your computer and use it in GitHub Desktop.
random queue more data
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
//n is the number of workers | |
//datum is your piece of data | |
wokers[~~(Math.random()*n)].postMessage(datum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment