<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.fiber.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'fiber.suspend.php',
    1 => 'Fiber::suspend',
    2 => 'Suspends execution of the current fiber',
  ),
  'up' => 
  array (
    0 => 'class.fiber.php',
    1 => 'Fiber',
  ),
  'prev' => 
  array (
    0 => 'fiber.isterminated.php',
    1 => 'Fiber::isTerminated',
  ),
  'next' => 
  array (
    0 => 'fiber.getcurrent.php',
    1 => 'Fiber::getCurrent',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/predefined/fiber/suspend.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="fiber.suspend" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Fiber::suspend</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.1.0)</p><p class="refpurpose"><span class="refname">Fiber::suspend</span> &mdash; <span class="dc-title">Suspends execution of the current fiber</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-fiber.suspend-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Fiber::suspend</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

  <p class="para rdfs-comment">
   Suspends execution of the current fiber. The value provided to this method will be returned from the call to
   <span class="methodname"><a href="fiber.start.php" class="methodname">Fiber::start()</a></span>, <span class="methodname"><a href="fiber.resume.php" class="methodname">Fiber::resume()</a></span>, or
   <span class="methodname"><a href="fiber.throw.php" class="methodname">Fiber::throw()</a></span> that switched execution into the current fiber.
  </p>
  <p class="para">
   When the fiber is resumed, this method returns the value provided to <span class="methodname"><a href="fiber.resume.php" class="methodname">Fiber::resume()</a></span>.
   If the fiber is resumed using <span class="methodname"><a href="fiber.throw.php" class="methodname">Fiber::throw()</a></span>, the exception given to that method will be
   thrown from the call to this method.
  </p>
  <p class="para">
   If this method is called from outside a fiber, a <span class="classname"><a href="class.fibererror.php" class="classname">FiberError</a></span> will be thrown.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-fiber.suspend-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <p class="para">
      The value to return from the call to <span class="methodname"><a href="fiber.start.php" class="methodname">Fiber::start()</a></span>,
      <span class="methodname"><a href="fiber.resume.php" class="methodname">Fiber::resume()</a></span>, or <span class="methodname"><a href="fiber.throw.php" class="methodname">Fiber::throw()</a></span> that switched execution into
      the current fiber.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-fiber.suspend-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   The value provided to <span class="methodname"><a href="fiber.resume.php" class="methodname">Fiber::resume()</a></span>.
  </p>
 </div>



</div><?php manual_footer($setup); ?>