Skip to content

Commit

Permalink
Update setcreatedcallback.xml to en
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalferov authored Oct 22, 2024
1 parent 3a8e0f1 commit 3202dc9
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions reference/gearman/gearmanclient/setcreatedcallback.xml
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 3c0b61c45a5dabe46865510311e57b77ea3dddb7 Maintainer: mch Status: ready -->
<!-- EN-Revision: 6b53a028fb43eb697c961c81053543fc51bc9028 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="gearmanclient.setcreatedcallback" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>GearmanClient::setCreatedCallback</refname>
<refpurpose>Установить функцию обратного вызова, когда задача ставится в очередь</refpurpose>
<refpurpose>Устанавливает callback-функцию при постановке задачи в очередь</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="GearmanClient">
<modifier>public</modifier> <type>bool</type><methodname>GearmanClient::setCreatedCallback</methodname>
<methodparam><type>callable</type><parameter>function</parameter></methodparam>
<methodparam><type>callable</type><parameter>callback</parameter></methodparam>
</methodsynopsis>
<para>
Устанавливает функцию, которая будет вызвана, когда задача получена и поставлена в очередь сервером задач Gearman.
Функция обратного вызова должна принимать единственный параметр - объект <classname>GearmanTask</classname>.
Метод устанавливает функцию, которая вызывается, когда сервер задач Gearman получил и поставил задачу в очередь.
</para>
&gearman.note.callback;
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>function</parameter></term>
<listitem>
<para>
Функция, которая должна быть вызвана.
</para>
</listitem>
</varlistentry>
&gearman.parameter.callback;
</variablelist>
</para>
</refsect1>
Expand Down

0 comments on commit 3202dc9

Please sign in to comment.