We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now if you use async you need to call the callback.
function delay(value, ms) { return new Promise((resolve) => { setTimeout(() => resolve(value), ms); }); } $('body').terminal($.noop, { login: async function(user, pass, callback) { var x = await delay({token: '4abxd9'}, 1000); return x.token; } });
The text was updated successfully, but these errors were encountered:
Terminal should also pause when value from login is a promise.
Sorry, something went wrong.
handle promises returned from login and async functions #401
73eb775
No branches or pull requests
Expected behavior
Actual behavior
Right now if you use async you need to call the callback.
Steps to reproduce
The text was updated successfully, but these errors were encountered: