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

execute command on telegram-cli #3

Open
mlkmhd opened this issue Aug 13, 2015 · 1 comment
Open

execute command on telegram-cli #3

mlkmhd opened this issue Aug 13, 2015 · 1 comment

Comments

@mlkmhd
Copy link

mlkmhd commented Aug 13, 2015

tank you for writing this wrapper on telegram-cli.
I read you library ant have a question about one class.
why you wait current thread for 100 millisecond in class TelegramProcess.php line 128?

https://github.com/josereyero/telegram/blob/master/lib/Drupal/telegram/TelegramProcess.php#L128

tank you

@josereyero
Copy link
Owner

The reason is telegram-cli being asynchronous so at some points we had to introduce some waiting times and time outs that would allow to get a proper response or to go on with the process otherwise.

Through testing we found that time to work most of the times.

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