Skip to content

Javascript library for easy multithreading using web workers

Notifications You must be signed in to change notification settings

wooo-/parallelize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Parallelize

Javascript library for easy multithreading using web workers.

With Parallelize you can run anonymous functions on new threads without creating a new file each time you need to call new Worker().

Sample code

var thread = Parallelize.createThread(function(max){
    var sum = 0;
    for(var i = 0; i < max; ++i){
        sum += Math.sqrt(i);
    }
    return sum;
});

thread.start([123456789], function(sum){
    alert(sum);
});

About

Javascript library for easy multithreading using web workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published