-
Notifications
You must be signed in to change notification settings - Fork 107
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
fix: transferrable not being transferred #155
Conversation
@Deivu Is this something that you could add a test for? |
@addaleax Took me some time to get the test working, but I did manage to add a test for it |
Hey, we tried using the |
Hmm looks like we've got a CI problem. I'll have to investigate that this weekend |
Hi @jasnell, I'm also interested in this fix for my project, any luck with the CI issues? 😬 |
Hey, any news over here :) ? |
Hey all, I have identified the issue with CI and have created a quick fix: #161 |
Hi @jasnell would it be possible to get this fix merged (and even release a new version of |
Running CI now, let's see where that lands first! |
merged! I'll look at cutting a new release tomorrow afternoon |
I noticed that returning a
Transferable objects
from a worker doesn't get the object transferred, instead it's being cloned.To verify this, I created my own Implementation of Transferrable
Then logged my buffer's byteLength intially, then after 1 second.
Without this fix, the byteLength didn't change, which signifies the buffer was not transferred
With the fix, the byteLength did change, which signifies the buffer was transferred