ext-uv/examples/fs_poll.php

12 lines
199 B
PHP
Raw Normal View History

2012-07-09 05:24:35 +02:00
<?php
$poll = uv_fs_poll_init(uv_default_loop());
uv_fs_poll_start($poll,function($rsc,$stat,$p){
var_dump(1);
var_dump($p);
2012-07-23 17:21:47 +02:00
//uv_fs_poll_stop($rsc);
2012-07-09 05:24:35 +02:00
}, "/tmp/hoge", 1);
uv_run();