« Generator::__wakeup
Fiber::__construct »

Fiber クラス

(PHP 8 >= 8.1.0)

はじめに

ファイバー(Fiber) は 完全なスタックを持つ、停止可能な関数です。 ファイバー はコールスタック中のどこからでも停止することができますし、 後に再開されるまで実行を停止したままにできます。

クラス概要

final class Fiber {
/* メソッド */
public function __construct(callable $callback)
public function start(mixed ...$args): mixed
public function resume(mixed $value = null): mixed
public function throw(Throwable $exception): mixed
public function getReturn(): mixed
public function isStarted(): bool
public function isSuspended(): bool
public function isRunning(): bool
public function isTerminated(): bool
public static function suspend(mixed $value = null): mixed
public static function getCurrent(): ?Fiber
}

目次

関連キーワード:
Fiber   ファイバー   mixed   停止   construct   再開   スタック   概要   start   resume   throw   getReturn   isStarted   isSuspended   isRunning   isTerminated   static   suspend   getCurrent   インスタンス   開始   Generator   wakeup   インターフェイス   final
関連する関数・ページ:
fiber.suspend   fiber.resume   fiber.isrunning   fiber.start   fiber.getreturn   fiber.isterminated