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

process.nextTick functionality like node.js #18

Open
superjimpupcake opened this issue Aug 20, 2012 · 1 comment
Open

process.nextTick functionality like node.js #18

superjimpupcake opened this issue Aug 20, 2012 · 1 comment

Comments

@superjimpupcake
Copy link

Hi,
How will we do something like node's process.nextTick in php-uv?
Thanks.
Best Regards,
Jim

@chobie
Copy link
Owner

chobie commented Aug 20, 2012

you can implement it with uv_idle, uv_prepare and uv_check.

https://github.com/chobie/php-uv#resource-uv_idle_initresource-loop
https://github.com/chobie/php-uv#resource-uv_prepare_initresource-loop
https://github.com/chobie/php-uv#resoruce-uv_check_initresource-loop

this presentation image is very useful to understand it. (but in Japanese)
http://www.slideshare.net/slideshow/embed_code/13464412?rel=0&startSlide=20
(notes: 1: update timers, 7: finish handles)

php-uv is experimental. if you have some problem.s please post an issue.

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