X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2FmultifunctionWorker.js;h=f3efb4529e337945ad17e0734ede160c7c7d2cd7;hb=1f9a5a440caea7dc60a664d413304250969bb4d8;hp=87edd57d05585ca8da37d9a14e15a2a6472e4cc5;hpb=106744f7518d0f64ce85c4507157092083c2c4d4;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)