-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Implement async/await interface #106
Comments
Can you, please, give a hint on implementation of async/await in constructor? |
I've found it in your "Async programming" course.
|
See this for example: https://github.com/metarhia/config/blob/master/config.js#L11 |
If we return promise from constructor we definitely need to wrap |
Implement async/await interface in addition to events and callbacks.
const logger = await new Logger();
await logger.open();
await logger.close();
await logger.rotate();
The text was updated successfully, but these errors were encountered: