-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add examples for hack lang #337
Conversation
I would appreciate someone with hack coding experience to write up their opinion. If nothing happens I'll probably merge this anyway. |
cc @fredemmott @usox |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the Entrypoint thingy, it seems to be ok. But someone should rebase all those single commits ;)
`count` is a built-in function so we can't use that for a name
@usox @asergeyev |
Thanks |
); | ||
|
||
// usleep is builtin, it is not an async builtin - so it also must block the main request thread | ||
usleep(500000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HH\Asio\usleep()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as a side note, async is not multithreading. Some async operations may use threading as an implementation detail, but in general (and for IO specifically), it's single-threaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed here : #340
No description provided.