JSONValue can not be used by custom defined interfaces (#201)
[poolifier.git] / README.md
index 0b8b03073db2bf1ea03d74d1b2810a101ab3848e..95b3f0c1e4f64735369fa8e4aede0c99ddfe45c5 100644 (file)
--- a/README.md
+++ b/README.md
@@ -94,7 +94,7 @@ You can implement a worker-threads worker in a simple way by extending the class
 'use strict'
 const { ThreadWorker } = require('poolifier')
 
-function yourFunction(data) {
+function yourFunction (data) {
   // this will be executed in the worker thread,
   // the data will be received by using the execute method
   return { ok: 1 }
@@ -137,6 +137,8 @@ You can do the same with the classes ClusterWorker, FixedClusterPool and Dynamic
 **See examples folder for more details (in particular if you want to use a pool for [multiple functions](./examples/multiFunctionExample.js)).**  
 **Now TypeScript is also supported, find how to use it into the example folder**.
 
+Remember that workers can only send and receive serializable (JSON) data.
+
 ## Node versions
 
 You can use node versions 12.x, 13.x, 14.x