dataframe-js
dataframe-js copied to clipboard
How can I pass DataFrame object to worker ?
How can I pass DataFrame object to worker ?
I am trying to do that but I receive the following error:
DOMException: Failed to execute 'postMessage' on 'Worker': function Stat(df) {
_classCallCheck(this, Stat);
this.df = df;
this.name = "stat";
} could not be cloned.
Hi, In order to pass a DataFrame on a Worker or WorkerThread you have to serialize it before sending it and deserialize it on the dedicated Worker.
It's the case for all complex js objects.