New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function could not be cloned #64
Comments
Unfortunately that's a limitation of the cloning algorithm used when passing data to worker threads. See https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm. That's not something that can be solved without changes to javascript engines. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using a function inside my job since it is from a library i use for compression and it is the CPU intensive task i need to allocate to the worker thread. this is returning an Error for me
saying ' The function{ } cannot be cloned '.
What does this mean & how do i solve this?
If this is not the proper place to ask this and you'd prefer i ask this on stack overflow, i'll bring this down.
The text was updated successfully, but these errors were encountered: