-
Notifications
You must be signed in to change notification settings - Fork 309
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
why await
?
#10
Comments
The
Hope that makes sense. |
You mean |
No, I meant there are no await (asynchronous) calls inside of the task and queue functions. The functions are very simple and don't need to be |
I got it. The doc indicate that all functions await axios.get('http://api.org/get-name');
// will be called after the above function is finished
await axios.get('http://api.org/get-age');
// both will be called asynchronously
axios.get('http://api.org/get-name');
axios.get('http://api.org/get-age'); Hope it only causes confusion for me lol. |
Thank you. I had not thought about it that way. Maybe the I have to think about this. Feedback is welcome :) |
Currently I'm in favor of removing |
I think people would use |
I implemented the
I prefer option 2 as this keeps backward compatibility and will hopefully make it more clear through documentation. |
Option 2 seems nice. |
I removed the "Be aware that this function only returns a Promise for backward compatibility reasons. This function does not run asynchronously and will immediately return." I guess that should clear any confusion in the future. |
Cool project, but I am confused that why you use
await
in your example:when you define a
task
or try to add some queues, whyawait
? I try to remove them and is ok to do that.The text was updated successfully, but these errors were encountered: