array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'fiber.throw.php', 1 => 'Fiber::throw', ), 'up' => array ( 0 => 'class.fiber.php', 1 => 'Fiber', ), 'prev' => array ( 0 => 'fiber.resume.php', 1 => 'Fiber::resume', ), 'next' => array ( 0 => 'fiber.getreturn.php', 1 => 'Fiber::getReturn', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'language/predefined/fiber/throw.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 8 >= 8.1.0)
Fiber::throw — Fiberin çalışmasını bir istisna ile devam ettirir
Geçerli Fiber::suspend() çağrısında belirtilen istisnanın oluşması fiberin çalışmasını sağlar.
Bu yöntem çağrıldığında fiber askıda değilse FiberError istisnası oluşur.
istisna
Geçerli Fiber::suspend() çağrısındaki fiberin içinde oluşturulacak istisna.
Sonraki Fiber::suspend() çağrısına sağlanan değer
veya fiber zaten dönmüşse null
döner. Fiber askıya alınmadan önce bir
istisna oluşmuşsa, oluşan istisna bu yöntem çağrısında yavrulanır.