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

javascript examples #11

Open
funston opened this issue Jul 23, 2015 · 5 comments
Open

javascript examples #11

funston opened this issue Jul 23, 2015 · 5 comments

Comments

@funston
Copy link

funston commented Jul 23, 2015

could we get example in js in how to create a job "class" properly.

@schnie
Copy link
Contributor

schnie commented Jul 23, 2015

It's pretty difficult to use this package without coffeescript :(
On Jul 23, 2015 1:13 PM, "Rich Schiavi" [email protected] wrote:

could we get example in js in how to create a job "class" properly.


Reply to this email directly or view it on GitHub
#11.

@neonsamurai
Copy link

I helped myself by translating the coffee script examples to javascript via http://coffeescript.org

It's not pretty but since meteor-workers seems to rely on the coffee-script inheritance features, I can't see another way than this.

If there's a better way please share it with me :)

@schnie
Copy link
Contributor

schnie commented Jul 24, 2015

Unfortunately I don't think there is. It was designed to be used with
naming conventions to make it super easy to set up but that part relies on
coffeescript stuff. Another option is to use the cluster package that this
package uses and then use an npm queue package and have your processing
logic running on the forked processes.
On Jul 24, 2015 9:27 AM, "Tim Jagodzinski" [email protected] wrote:

I helped myself by translating the coffee script examples to javascript
via http://coffeescript.org

It's not pretty but since meteor-workers seems to rely on the
coffee-script inheritance features, I can't see another way than this.

If there's a better way please share it with me :)


Reply to this email directly or view it on GitHub
#11 (comment)
.

@hellogerard
Copy link

ES6 all the code!

@schnie
Copy link
Contributor

schnie commented Jul 24, 2015

Haha, that may work too. Haven't tried it with this package, but it might
be worth a shot.

On Fri, Jul 24, 2015 at 10:58 AM, Gerard Sychay [email protected]
wrote:

ES6 all the code!


Reply to this email directly or view it on GitHub
#11 (comment)
.

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