Ejemplo n.º 1
0
 public function unlink($path, $callback)
 {
     uv_fs_unlink($this->getEventLoop(), $path, $callback);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function unlink($path)
 {
     $this->reactor->addRef();
     $promisor = new Deferred();
     \uv_fs_unlink($this->loop, $path, function ($fh) use($promisor) {
         $this->reactor->delRef();
         $promisor->succeed((bool) $fh);
     });
     return $promisor->promise();
 }
Ejemplo n.º 3
0
<?php

uv_fs_unlink(uv_default_loop(), "moe", function ($result) {
    var_dump($result);
});
uv_run();