msgid ""
msgstr ""
"Project-Id-Version: Chinese (Simplified Han script) (Boost Beast Translation "
"(zh_Hans))\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-07 13:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese (Simplified Han script) <https://"
"insights.cppalliance.org/weblate/projects/boost-beast-documentation-zh_Hans/"
"doc-qbk-03-core-7-composed-qbk/zh_Hans/>\n"
"Language: zh_Hans\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 2026.5\n"

#. type: section title
#: 10
#, fuzzy
msgid "Writing Composed Operations"
msgstr "Writing Composed Operations"

#. type: paragraph
#: 12
#, fuzzy
msgid ""
"Asynchronous operations are started by calling a free function or member "
"function known as an asynchronous ['__async_initfn__]. This function accepts "
"parameters specific to the operation as well as a __CompletionToken__. The "
"token is either a completion handler, or a type defining how the caller is "
"informed of the asynchronous operation result. Networking provides the "
"special tokens __use_future__ and __yield_context__ for using futures and "
"coroutines respectively. This system of customizing the return value and "
"method of completion notification is known as the ['Universal Asynchronous "
"Model] described in __N3747__, and a built in to __NetTS__. Here is an "
"example of an initiating function which reads a line from the stream and "
"echoes it back. This function is developed further in the next section:"
msgstr ""
"Asynchronous operations are started by calling a free function or member "
"function known as an asynchronous ['__async_initfn__]. This function accepts "
"parameters specific to the operation as well as a __CompletionToken__. The "
"token is either a completion handler, or a type defining how the caller is "
"informed of the asynchronous operation result. Networking provides the "
"special tokens __use_future__ and __yield_context__ for using futures and "
"coroutines respectively. This system of customizing the return value and "
"method of completion notification is known as the ['Universal Asynchronous "
"Model] described in __N3747__, and a built in to __NetTS__. Here is an "
"example of an initiating function which reads a line from the stream and "
"echoes it back. This function is developed further in the next section:"

#. type: paragraph
#: 28
#, fuzzy
msgid ""
"This initiating function receives the dynamic buffer by lvalue-reference,"
msgstr ""
"This initiating function receives the dynamic buffer by lvalue-reference,"

#. type: paragraph
#: 33
#, fuzzy
msgid ""
"Authors using Beast can reuse the library's primitives to create their own "
"initiating functions for performing a series of other, intermediate "
"asynchronous operations before invoking a final completion handler. The set "
"of intermediate actions produced by an initiating function is known as a "
"[@http://blog.think-async.com/2009/08/composed-operations-coroutines-and-"
"code.html ['composed operation]]. To ensure full interoperability and well-"
"defined behavior, __Asio__ imposes requirements on the implementation of "
"composed operations. These classes and functions make it easier to develop "
"initiating functions and their composed operations:"
msgstr ""
"Authors using Beast can reuse the library's primitives to create their own "
"initiating functions for performing a series of other, intermediate "
"asynchronous operations before invoking a final completion handler. The set "
"of intermediate actions produced by an initiating function is known as a "
"[@http://blog.think-async.com/2009/08/composed-operations-coroutines-and-"
"code.html ['composed operation]]. To ensure full interoperability and well-"
"defined behavior, __Asio__ imposes requirements on the implementation of "
"composed operations. These classes and functions make it easier to develop "
"initiating functions and their composed operations:"

#. type: table title
#: 44
#, fuzzy
msgid "Asynchronous Helpers"
msgstr "Asynchronous Helpers"

#. type: table cell
#: 44
#, fuzzy
msgid "Name"
msgstr "Name"

#. type: table cell
#: 44
#, fuzzy
msgid "Description"
msgstr "Description"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"[link beast.ref.boost__beast__async_base `async_base`] [link "
"beast.ref.boost__beast__stable_async_base `stable_async_base`]"
msgstr ""
"[link beast.ref.boost__beast__async_base `async_base`] [link "
"beast.ref.boost__beast__stable_async_base `stable_async_base`]"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"This class is designed to be used as a base class when authoring composed "
"asynchronous operations expressed as an intermediate completion handler. "
"This eliminates the need for the extensive boilerplate to propagate the "
"associated executor and the associated allocator."
msgstr ""
"This class is designed to be used as a base class when authoring composed "
"asynchronous operations expressed as an intermediate completion handler. "
"This eliminates the need for the extensive boilerplate to propagate the "
"associated executor and the associated allocator."

#. type: table cell
#: 44
#, fuzzy
msgid "[link beast.ref.boost__beast__allocate_stable `allocate_stable`]"
msgstr "[link beast.ref.boost__beast__allocate_stable `allocate_stable`]"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"For composed operation algorithms which need stable storage for temporary "
"objects, this function may be used. Memory for the stable storage is "
"allocated using the allocator associated with the final completion handler. "
"The implementation automatically destroys the temporary object before the "
"final completion handler is invoked, or when the intermediate completion "
"handler is destroyed."
msgstr ""
"For composed operation algorithms which need stable storage for temporary "
"objects, this function may be used. Memory for the stable storage is "
"allocated using the allocator associated with the final completion handler. "
"The implementation automatically destroys the temporary object before the "
"final completion handler is invoked, or when the intermediate completion "
"handler is destroyed."

#. type: table cell
#: 44
#, fuzzy
msgid "[link beast.ref.boost__beast__bind_handler `bind_handler`]"
msgstr "[link beast.ref.boost__beast__bind_handler `bind_handler`]"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"This function creates a new handler which, when invoked, calls the original "
"handler with the list of bound arguments. Any parameters passed in the "
"invocation will be substituted for placeholders present in the list of bound "
"arguments. Parameters which are not matched to placeholders are silently "
"discarded.\n"
"\n"
"The passed handler and arguments are forwarded into the returned handler, "
"whose associated allocator and associated executor will be the same as those "
"of the original handler."
msgstr ""
"This function creates a new handler which, when invoked, calls the original "
"handler with the list of bound arguments. Any parameters passed in the "
"invocation will be substituted for placeholders present in the list of bound "
"arguments. Parameters which are not matched to placeholders are silently "
"discarded.\n"
"\n"
"The passed handler and arguments are forwarded into the returned handler, "
"whose associated allocator and associated executor will be the same as those "
"of the original handler."

#. type: table cell
#: 44
#, fuzzy
msgid "[link beast.ref.boost__beast__bind_front_handler `bind_front_handler`]"
msgstr "[link beast.ref.boost__beast__bind_front_handler `bind_front_handler`]"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"This function creates a new handler which, when invoked, calls the original "
"handler with the list of bound arguments, along with the list of invoked "
"arguments at either the front or the back of the argument list. Placeholders "
"are not supported.\n"
"\n"
"The passed handler and arguments are forwarded into the returned handler, "
"whose associated allocator and associated executor will will be the same as "
"those of the original handler."
msgstr ""
"This function creates a new handler which, when invoked, calls the original "
"handler with the list of bound arguments, along with the list of invoked "
"arguments at either the front or the back of the argument list. Placeholders "
"are not supported.\n"
"\n"
"The passed handler and arguments are forwarded into the returned handler, "
"whose associated allocator and associated executor will will be the same as "
"those of the original handler."

#. type: table cell
#: 44
#, fuzzy
msgid "[link beast.ref.boost__beast__saved_handler `saved_handler`]"
msgstr "[link beast.ref.boost__beast__saved_handler `saved_handler`]"

#. type: table cell
#: 44
#, fuzzy
msgid ""
"This wrapper safely stores a completion handler so it may be invoked later, "
"allowing an implementation to \"pause\" an operation until some condition is "
"met."
msgstr ""
"This wrapper safely stores a completion handler so it may be invoked later, "
"allowing an implementation to \"pause\" an operation until some condition is "
"met."
