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

Blocking Delay function #66

Closed
Deltatiger opened this issue Aug 1, 2015 · 2 comments
Closed

Blocking Delay function #66

Deltatiger opened this issue Aug 1, 2015 · 2 comments

Comments

@Deltatiger
Copy link
Collaborator

Some of the times I am having issues were I will have to wait to do something. Currently I am setting a SetTimeout function to achieve this delay. Since we are dealing with C modules why not add such a function to it ? It would use the Sleep in the C module. This will provide some level of code complexity reduction.

Though I may be wrong about it but this is a need that just cropped up.

@octalmage
Copy link
Owner

Every function should have a delay built in, and this resolved this issue for me on Mac. See #14. I would like to make this adjustable so a sleep isn't needed after each function, this is how AHK handles it. While I figure this out you can use this:

https://www.npmjs.com/package/sleep

.

@octalmage
Copy link
Owner

I'm going to close this in favor of #14, let continue this conversation there!

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

2 participants