@@ -20,41 +20,53 @@ msgstr ""
2020
2121#: ../Doc/library/asyncio-extending.rst:6
2222msgid "Extending"
23- msgstr ""
23+ msgstr "Extensión "
2424
2525#: ../Doc/library/asyncio-extending.rst:8
2626msgid ""
2727"The main direction for :mod:`asyncio` extending is writing custom *event "
2828"loop* classes. Asyncio has helpers that could be used to simplify this task."
2929msgstr ""
30+ "La dirección principal para extender :mod:`asyncio` es escribir clases "
31+ "*event loop* personalizadas. Asyncio tiene ayudantes que podrían usarse para "
32+ "simplificar esta tarea."
3033
3134#: ../Doc/library/asyncio-extending.rst:13
3235msgid ""
3336"Third-parties should reuse existing asyncio code with caution, a new Python "
3437"version is free to break backward compatibility in *internal* part of API."
3538msgstr ""
39+ "Los terceros deben reutilizar el código asyncio existente con precaución, "
40+ "una nueva versión de Python es gratuita para romper la compatibilidad con "
41+ "versiones anteriores en la parte *internal* de la API."
3642
3743#: ../Doc/library/asyncio-extending.rst:19
3844msgid "Writing a Custom Event Loop"
39- msgstr ""
45+ msgstr "Escribir un bucle de eventos personalizado "
4046
4147#: ../Doc/library/asyncio-extending.rst:21
4248msgid ""
4349":class:`asyncio.AbstractEventLoop` declares very many methods. Implementing "
4450"all them from scratch is a tedious job."
4551msgstr ""
52+ ":class:`asyncio.AbstractEventLoop` declara muchos métodos. Implementarlos "
53+ "todos desde cero es un trabajo tedioso."
4654
4755#: ../Doc/library/asyncio-extending.rst:24
4856msgid ""
4957"A loop can get many common methods implementation for free by inheriting "
5058"from :class:`asyncio.BaseEventLoop`."
5159msgstr ""
60+ "Un bucle puede obtener la implementación de muchos métodos comunes de forma "
61+ "gratuita al heredar de :class:`asyncio.BaseEventLoop`."
5262
5363#: ../Doc/library/asyncio-extending.rst:27
5464msgid ""
5565"In turn, the successor should implement a bunch of *private* methods "
5666"declared but not implemented in :class:`asyncio.BaseEventLoop`."
5767msgstr ""
68+ "A su vez, el sucesor debería implementar un montón de métodos *privados* "
69+ "declarados pero no implementados en :class:`asyncio.BaseEventLoop`."
5870
5971#: ../Doc/library/asyncio-extending.rst:30
6072msgid ""
@@ -63,94 +75,114 @@ msgid ""
6375"implemented by inherited class. The ``_make_socket_transport()`` method is "
6476"not documented and is considered as an *internal* API."
6577msgstr ""
78+ "Por ejemplo, ``loop.create_connection()`` comprueba los argumentos, resuelve "
79+ "las direcciones DNS y llama a ``loop._make_socket_transport()`` que debería "
80+ "implementar la clase heredada. El método ``_make_socket_transport()`` no "
81+ "está documentado y se considera como una API *internal*."
6682
6783#: ../Doc/library/asyncio-extending.rst:38
6884msgid "Future and Task private constructors"
69- msgstr ""
85+ msgstr "Constructores privados Future y Task "
7086
7187#: ../Doc/library/asyncio-extending.rst:40
7288msgid ""
7389":class:`asyncio.Future` and :class:`asyncio.Task` should be never created "
7490"directly, please use corresponding :meth:`loop.create_future` and :meth:"
7591"`loop.create_task`, or :func:`asyncio.create_task` factories instead."
7692msgstr ""
93+ ":class:`asyncio.Future` y :class:`asyncio.Task` nunca deben crearse "
94+ "directamente; en su lugar, utilice las fábricas :meth:`loop.create_future` "
95+ "y :meth:`loop.create_task` o :func:`asyncio.create_task` correspondientes."
7796
7897#: ../Doc/library/asyncio-extending.rst:44
7998msgid ""
8099"However, third-party *event loops* may *reuse* built-in future and task "
81100"implementations for the sake of getting a complex and highly optimized code "
82101"for free."
83102msgstr ""
103+ "Sin embargo, *event loops* de terceros puede *reuse* incorporar futuras "
104+ "implementaciones y tareas con el fin de obtener un código complejo y "
105+ "altamente optimizado de forma gratuita."
84106
85107#: ../Doc/library/asyncio-extending.rst:47
86108msgid "For this purpose the following, *private* constructors are listed:"
87- msgstr ""
109+ msgstr "Para ello se listan los siguientes constructores *private*: "
88110
89111#: ../Doc/library/asyncio-extending.rst:51
90112msgid "Create a built-in future instance."
91- msgstr ""
113+ msgstr "Cree una instancia futura integrada. "
92114
93115#: ../Doc/library/asyncio-extending.rst:53
94116msgid "*loop* is an optional event loop instance."
95- msgstr ""
117+ msgstr "*loop* es una instancia de bucle de eventos opcional. "
96118
97119#: ../Doc/library/asyncio-extending.rst:57
98120msgid "Create a built-in task instance."
99- msgstr ""
121+ msgstr "Cree una instancia de tarea integrada. "
100122
101123#: ../Doc/library/asyncio-extending.rst:59
102124msgid ""
103125"*loop* is an optional event loop instance. The rest of arguments are "
104126"described in :meth:`loop.create_task` description."
105127msgstr ""
128+ "*loop* es una instancia de bucle de eventos opcional. El resto de argumentos "
129+ "se describen en la descripción de :meth:`loop.create_task`."
106130
107131#: ../Doc/library/asyncio-extending.rst:64
108132msgid "*context* argument is added."
109- msgstr ""
133+ msgstr "Se agrega el argumento *context*. "
110134
111135#: ../Doc/library/asyncio-extending.rst:69
112136msgid "Task lifetime support"
113- msgstr ""
137+ msgstr "Soporte de por vida de tareas "
114138
115139#: ../Doc/library/asyncio-extending.rst:71
116140msgid ""
117141"A third party task implementation should call the following functions to "
118142"keep a task visible by :func:`asyncio.get_tasks` and :func:`asyncio."
119143"current_task`:"
120144msgstr ""
145+ "La implementación de una tarea de terceros debe llamar a las siguientes "
146+ "funciones para mantener una tarea visible para :func:`asyncio.get_tasks` y :"
147+ "func:`asyncio.current_task`:"
121148
122149#: ../Doc/library/asyncio-extending.rst:76
123150msgid "Register a new *task* as managed by *asyncio*."
124- msgstr ""
151+ msgstr "Registre un nuevo *task* como administrado por *asyncio*. "
125152
126153#: ../Doc/library/asyncio-extending.rst:78
127154msgid "Call the function from a task constructor."
128- msgstr ""
155+ msgstr "Llame a la función desde un constructor de tareas. "
129156
130157#: ../Doc/library/asyncio-extending.rst:82
131158msgid "Unregister a *task* from *asyncio* internal structures."
132159msgstr ""
160+ "Anule el registro de un *task* de las estructuras internas de *asyncio*."
133161
134162#: ../Doc/library/asyncio-extending.rst:84
135163msgid "The function should be called when a task is about to finish."
136- msgstr ""
164+ msgstr "La función debe llamarse cuando una tarea está a punto de finalizar. "
137165
138166#: ../Doc/library/asyncio-extending.rst:88
139167msgid "Switch the current task to the *task* argument."
140- msgstr ""
168+ msgstr "Cambie la tarea actual al argumento *task*. "
141169
142170#: ../Doc/library/asyncio-extending.rst:90
143171msgid ""
144172"Call the function just before executing a portion of embedded *coroutine* (:"
145173"meth:`coroutine.send` or :meth:`coroutine.throw`)."
146174msgstr ""
175+ "Llame a la función justo antes de ejecutar una parte del *coroutine* "
176+ "incrustado (:meth:`coroutine.send` o :meth:`coroutine.throw`)."
147177
148178#: ../Doc/library/asyncio-extending.rst:95
149179msgid "Switch the current task back from *task* to ``None``."
150- msgstr ""
180+ msgstr "Vuelva a cambiar la tarea actual de *task* a ``None``. "
151181
152182#: ../Doc/library/asyncio-extending.rst:97
153183msgid ""
154184"Call the function just after :meth:`coroutine.send` or :meth:`coroutine."
155185"throw` execution."
156186msgstr ""
187+ "Llame a la función justo después de la ejecución de :meth:`coroutine.send` "
188+ "o :meth:`coroutine.throw`."
0 commit comments