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

support Instance methods ?? #66

Open
kingangelAOA opened this issue Jun 23, 2017 · 0 comments
Open

support Instance methods ?? #66

kingangelAOA opened this issue Jun 23, 2017 · 0 comments

Comments

@kingangelAOA
Copy link

example:

class Test {
constructor() {

}

aaa() {
    return 11111
}

}

const test = new Test()

var numThreads= 10;
var threadPool= require('threads_a_gogo').createPool(numThreads).all.eval(test.aa);

threadPool.all.eval('test.aa()', function cb (err, data) {
process.stdout.write(" ["+ this.id+ "]"+ data);
this.eval('test.aa()', cb);
});

didn't support?

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

1 participant