zend_fibers.stub.php 752 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /** @generate-class-entries */
  3. /**
  4. * @strict-properties
  5. * @not-serializable
  6. */
  7. final class Fiber
  8. {
  9. public function __construct(callable $callback) {}
  10. public function start(mixed ...$args): mixed {}
  11. public function resume(mixed $value = null): mixed {}
  12. public function throw(Throwable $exception): mixed {}
  13. public function isStarted(): bool {}
  14. public function isSuspended(): bool {}
  15. public function isRunning(): bool {}
  16. public function isTerminated(): bool {}
  17. public function getReturn(): mixed {}
  18. public static function getCurrent(): ?Fiber {}
  19. public static function suspend(mixed $value = null): mixed {}
  20. }
  21. final class FiberError extends Error
  22. {
  23. public function __construct() {}
  24. }