Simple Multi-thread launcher in JavaScript
npm install siljsjavascript
/ ... /
import _SIL from "siljs" / ES6 /
import _SIL from "https://timtermtube.github.io/sil.js/index.js" / module tag in html /
const _SIL = require("siljs"); / CommonJS /
const SIL = _SIL.default;
const myThread = SIL.newThread((a) => {return a+a2}, "WorkingAnt", [15], (x) => { / When returned, It'll be worked */ console.log(x.data)});
/ ... /
``