cracks Posted November 3, 2022 Report Posted November 3, 2022 HI i've tried to call function like on first screenshot and await didn't work, second screenshot is called function, readline also sync(readline-sync package) Quote
Dr. McKay Posted November 4, 2022 Report Posted November 4, 2022 async/await doesn't work like that. You'd need to wrap the entire call in a promise and resolve the promise when your callback is done. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.