Skip to content
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

How to add "after" TCL delay command support? #13

Open
jackylinpda opened this issue Jul 29, 2020 · 0 comments
Open

How to add "after" TCL delay command support? #13

jackylinpda opened this issue Jul 29, 2020 · 0 comments

Comments

@jackylinpda
Copy link

I try to add "after" support via addSimpleProcedure, but it doesn't work:

const sleep = (ms) => {
    return new Promise(resolve => setTimeout(resolve, ms));
}
const after = async () => {
    await sleep(5000);
}
tcl.addSimpleProcedure('after', after);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant