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
Generator style callback does not work #325
Comments
@onevcat I don't really know as I don't use generators myself. /cc @jonhester @tejasmanohar @albertdatui ? |
I can confirm this doesn't work, @albertdatui are you trying to fix it? |
Hi yeah!! Been looking around for this function.
Will update the thread once I found the solution
Thanks
…On May 13, 2017 4:35 PM, "Ezechiele" ***@***.***> wrote:
I can confirm this doesn't work, @albertdatui
<https://github.com/albertdatui> are you trying to fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#325 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFasy1GciuYvXpAWcid0J_Is3t-O-I7oks5r5WtRgaJpZM4LtMMf>
.
|
Hi! I used Node 'co' module for that. |
you can try
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I am new to ES6 and node-schedule. I am trying to schedule a job with a generator function as callback. I saw that #210 mentioned that generator was supported. Here is my code below:
The
Hi
will be printed out correctly, but theResult
will never printed out. I am usingyield Message.findAll()
quite a lot in other places without problem, so I guess it might be something in the generator way of node-schedule.I also tried to insert an yield line in the test cases of node-schedule, right before the
test.ok(true);
:The test becomes failing too.
Since I am new to Javascript and generator, I am not sure what happened. Am I using generator correctly or did I miss something?
Thanks for any kind suggestion.
The text was updated successfully, but these errors were encountered: