fiber-no-cgo.php 216 B

123456789101112
  1. <?php
  2. require_once __DIR__.'/_executor.php';
  3. return function() {
  4. $fiber = new Fiber(function() {
  5. Fiber::suspend('Fiber '.($_GET['i'] ?? ''));
  6. });
  7. echo $fiber->start();
  8. $fiber->resume();
  9. };