Skip to content
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

the receiver must be a thread object #22

Open
boldt opened this issue Feb 7, 2014 · 3 comments
Open

the receiver must be a thread object #22

boldt opened this issue Feb 7, 2014 · 3 comments

Comments

@boldt
Copy link

boldt commented Feb 7, 2014

I am getting a the receiver must be a thread object. What excalty does it mean?

@arunkjn
Copy link

arunkjn commented Mar 10, 2014

+1

@audreyt
Copy link
Owner

audreyt commented Mar 10, 2014

Sample code, please?

@Lindenk
Copy link

Lindenk commented Dec 21, 2016

I had a similar issue. You may need to bind your thread to the function you are passing around. Ex:

var t = Thread.create();
promisify(t.load)

to

var t = Thread.create();
promisify(t.load.bind(t))

My guess is webworker-threads is trying to say this is not a thread object in it's functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants