-
Notifications
You must be signed in to change notification settings - Fork 2
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
await
does not return until the terminal is moved
#3
Comments
I posted the same question on StackOverflow, and got an interesting comment.
|
@sivabudh it seems to be a known Express issue. tjanczuk/edge#325. I can do nothing with my code. I've tested your code and found when the libuv work's done, it blocked. Once you do something, such as refresh your page or send interruption signal in the terminal, the code will continue to run. I suggest that you can use the traditional way as follows:
|
@yushulx If that's the case, I'm thinking about dropping Express, and use some other framework. I probably will use a similar bare bone framework. I will update you. |
@yushulx I re-wrote the code like this:
main.js
Reference (forked from your repo):
https://github.com/sivabudh/linux-barcode-sdk-node-wrapper/blob/dbr-async-await/main.js
From the outset, it should have worked fine, right? But what I found was that
await
never returned until I moved the Terminal screen (!!). If this is unclear, please kindly see the GIF below.GIF demonstrating the problem:
https://cl.ly/mcb6
The text was updated successfully, but these errors were encountered: