1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 00:32:15 +01:00
Files
archived-doc-ru/reference/ev/evloop/defaultloop.xml
Sergey Panteleev 6d43fd64d7 Исправление форматирования
[skip-spellcheck]
[skip-lint]
2022-12-27 03:42:36 +03:00

131 lines
3.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 508869e1df6458162c162d71669f5e81abd65d50 Maintainer: sergey Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="evloop.defaultloop" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>EvLoop::defaultLoop</refname>
<refpurpose>Возвращает или создаёт цикл событий по умолчанию</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier>
<modifier>static</modifier>
<type>EvLoop</type>
<methodname>EvLoop::defaultLoop</methodname>
<methodparam
choice="opt">
<type>int</type>
<parameter>flags</parameter>
<initializer>Ev::FLAG_AUTO</initializer>
</methodparam>
<methodparam
choice="opt">
<type>mixed</type>
<parameter>data</parameter>
<initializer>NULL</initializer>
</methodparam>
<methodparam
choice="opt">
<type>float</type>
<parameter>io_interval</parameter>
<initializer>0.</initializer>
</methodparam>
<methodparam
choice="opt">
<type>float</type>
<parameter>timeout_interval</parameter>
<initializer>0.</initializer>
</methodparam>
</methodsynopsis>
<para>
Если цикл событий по умолчанию не создан, <methodname>EvLoop::defaultLoop</methodname>
создаёт его с указанными параметрами.
В противном случае он просто возвращает объект, представляющий ранее созданный экземпляр, игнорируя все параметры.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term>
<parameter>flags</parameter>
</term>
<listitem>
<para>
Один из
<link linkend="ev.constants.loop-flags">флагов цикла событий</link>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>data</parameter>
</term>
<listitem>
<para>
Пользовательские данные, связанные с циклом.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>io_collect_interval</parameter>
</term>
<listitem>
<para>
Смотрите
<link linkend="evloop.props.io-interval">io_interval</link>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>timeout_collect_interval</parameter>
</term>
<listitem>
<para>
Смотрите
<link linkend="evloop.props.timeout-interval">timeout_interval</link>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает объект EvLoop в случае успешного выполнения.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member>
<methodname>EvLoop::__construct</methodname>
</member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->