xref: /php-uv/examples/fs_poll.php (revision 99312394)
1<?php
2
3$poll = uv_fs_poll_init(uv_default_loop());
4
5uv_fs_poll_start($poll,function($rsc,$stat,$p) {
6    var_dump(1);
7    var_dump($p);
8    // uv_fs_poll_stop($rsc);
9}, "/target/directory", 1);
10
11uv_run();
12