Skip to content

citrizon/node-threads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-threads

Implementing C#-Style Threading (as minimal as possible) to Node.JS by utilizing the way Node.JS Workers work!

Installation:

Use the command npm i cithread

Usage:

const Thread = require( 'cithread' );

function Thread1Func () {
    let i;
    for ( i = 0; i < 10000; i++ ) {
        // Do literally nothing. :3
    }
    return `Hello World: ${i}`;
}

let myThread = new Thread( Thread1Func );

( async () => console.log( await myThread.run() ) )();

About

Implementing C#-Style Threading (as minimal as possible) to Node.JS!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published