Browse Source

draft async request for sync gemini/next api

PHP-GTK3
yggverse 4 months ago
parent
commit
3ff79cb0be
  1. 34
      src/Model/Connection.php

34
src/Model/Connection.php

@ -33,21 +33,35 @@ class Connection extends \Yggverse\Yoda\Abstract\Model\Connection
break; break;
case 'gemini': case 'gemini': // async
(new Gemini($this))->request( $pid = pcntl_fork();
$address,
$timeout if ($pid === 0)
); {
(new Gemini($this))->request(
$address,
$timeout
);
exit;
}
break; break;
case 'nex': case 'nex': // async
(new Nex($this))->request( $pid = pcntl_fork();
$address,
$timeout if ($pid === 0)
); {
(new Nex($this))->request(
$address,
$timeout
);
exit;
}
break; break;

Loading…
Cancel
Save