X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2FmultifunctionWorker.js;h=f3efb4529e337945ad17e0734ede160c7c7d2cd7;hb=695b7a99868082d63ab01c0946ca8d19f63ba27a;hp=87edd57d05585ca8da37d9a14e15a2a6472e4cc5;hpb=a3c8691eb5bd772a43746fd5860d54a786463039;p=poolifier.git diff --git a/examples/multifunctionWorker.js b/examples/multifunctionWorker.js index 87edd57d..f3efb452 100644 --- a/examples/multifunctionWorker.js +++ b/examples/multifunctionWorker.js @@ -11,9 +11,4 @@ function yourFunction (data) { } } -class MyWorker extends ThreadWorker { - constructor () { - super(yourFunction) - } -} -module.exports = new MyWorker() +module.exports = new ThreadWorker(yourFunction)