<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.swoole-runtime.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'swoole-runtime.enable-coroutine.php',
    1 => 'Swoole\\Runtime::enableCoroutine',
    2 => 'Enable coroutine for specified functions',
  ),
  'up' => 
  array (
    0 => 'class.swoole-runtime.php',
    1 => 'Swoole\\Runtime',
  ),
  'prev' => 
  array (
    0 => 'class.swoole-runtime.php',
    1 => 'Swoole\\Runtime',
  ),
  'next' => 
  array (
    0 => 'swoole-runtime.get-hook-flags.php',
    1 => 'Swoole\\Runtime::getHookFlags',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/swoole/swoole/runtime/enableCoroutine.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="swoole-runtime.enable-coroutine" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Swoole\Runtime::enableCoroutine</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">Swoole\Runtime::enableCoroutine</span> &mdash; <span class="dc-title">Enable coroutine for specified functions</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-swoole-runtime.enable-coroutine-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>Swoole\Runtime::enableCoroutine</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = SWOOLE_HOOK_ALL</span></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   This method enables coroutine support for specified PHP functions based on the given flags.
   It should be called once at the beginning of the application.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swoole-runtime.enable-coroutine-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">flags</code></dt>
    <dd>
     <p class="para">
      Bitmask of flags specifying which functions to hook. Can be combined using | operator.
      Available flags:
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-tcp">SWOOLE_HOOK_TCP</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-udp">SWOOLE_HOOK_UDP</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-unix">SWOOLE_HOOK_UNIX</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-udg">SWOOLE_HOOK_UDG</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-ssl">SWOOLE_HOOK_SSL</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-tls">SWOOLE_HOOK_TLS</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-sleep">SWOOLE_HOOK_SLEEP</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-file">SWOOLE_HOOK_FILE</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-stream-function">SWOOLE_HOOK_STREAM_FUNCTION</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-blocking-function">SWOOLE_HOOK_BLOCKING_FUNCTION</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-proc">SWOOLE_HOOK_PROC</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-curl">SWOOLE_HOOK_CURL</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-native-curl">SWOOLE_HOOK_NATIVE_CURL</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-sockets">SWOOLE_HOOK_SOCKETS</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-stdio">SWOOLE_HOOK_STDIO</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-pdo-pgsql">SWOOLE_HOOK_PDO_PGSQL</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-pdo-odbc">SWOOLE_HOOK_PDO_ODBC</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-pdo-oracle">SWOOLE_HOOK_PDO_ORACLE</a></code></strong>,
      <strong><code><a href="swoole.constants.php#constant.swoole-hook-pdo-sqlite">SWOOLE_HOOK_PDO_SQLITE</a></code></strong>,
      or <strong><code><a href="swoole.constants.php#constant.swoole-hook-all">SWOOLE_HOOK_ALL</a></code></strong> for all flags.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swoole-runtime.enable-coroutine-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Es wird kein Wert zurückgegeben.
  </p>
 </div>

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