PHPDaemon\Core\SyncWrapper::__call PHP Method

__call() public method

Abstract call
public __call ( $method, $args )
$method
$args
    public function __call($method, $args)
    {
        $args[] = function ($arg) use(&$ret) {
            $ret = $arg->result;
            EventLoop::$instance->stop();
        };
        $this->obj->{$method}(...$args);
        EventLoop::$instance->run();
        return $ret;
    }