You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
":class:`Runner` usa una estrategia de inicialización perezosa, su "
"constructor no inicializa las estructuras de bajo nivel subyacentes."
#: ../Doc/library/asyncio-runner.rst:122
msgid ""
"Embedded *loop* and *context* are created at the :keyword:`with` body "
"entering or the first call of :meth:`run` or :meth:`get_loop`."
msgstr ""
"El *bucle* y el *contexto* embebidos son creados al entrar al cuerpo :"
"keyword:`with` o en la primera llamada a :meth:`run` o a :meth:`get_loop`."
#: ../Doc/library/asyncio-runner.rst:127
msgid "Handling Keyboard Interruption"
msgstr ""
msgstr "Manejando interrupciones de teclado"
# Oración muy poco clara, incluso en inglés=> adaptación para que sea más comprensible
#: ../Doc/library/asyncio-runner.rst:131
msgid ""
"When :const:`signal.SIGINT` is raised by :kbd:`Ctrl-C`, :exc:"
"`KeyboardInterrupt` exception is raised in the main thread by default. "
"However this doesn't work with :mod:`asyncio` because it can interrupt "
"asyncio internals and can hang the program from exiting."
msgstr ""
"Cuando la excepción :const:`signal.SIGINT` es lanzada por :kbd:`Ctrl-C`, la "
"excepción :exc:`KeyboardInterrupt` es lanzada en el hilo principal por "
"defecto. Sin embargo, esto no siempre funciona con :mod:`asyncio` porque "
"puede interrumpir llamadas internas a asyncio e impedir la salida del "
"programa."
#: ../Doc/library/asyncio-runner.rst:136
msgid ""
"To mitigate this issue, :mod:`asyncio` handles :const:`signal.SIGINT` as "
"follows:"
msgstr ""
"Para mitigar este problema, :mod:`asyncio` maneja :const:`signal.SIGINT` de "
"la siguiente forma:"
#: ../Doc/library/asyncio-runner.rst:138
msgid ""
":meth:`asyncio.Runner.run` installs a custom :const:`signal.SIGINT` handler "
"before any user code is executed and removes it when exiting from the "
"function."
msgstr ""
":meth:`asyncio.Runner.run` instala un administrador :const:`signal.SIGINT` "
"personalizado antes que cualquier código de usuario sea ejecutado y lo "
"remueve a la salida de la función."
#: ../Doc/library/asyncio-runner.rst:140
msgid ""
"The :class:`~asyncio.Runner` creates the main task for the passed coroutine "
"for its execution."
msgstr ""
"La :class:`~asyncio.Runner` crea la tarea principal que será pasada a la co-"
"rutina para su ejecución."
#: ../Doc/library/asyncio-runner.rst:142
#, fuzzy
msgid ""
"When :const:`signal.SIGINT` is raised by :kbd:`Ctrl-C`, the custom signal "
"handler cancels the main task by calling :meth:`asyncio.Task.cancel` which "
Expand All
@@ -195,6 +258,13 @@ msgid ""
"used for resource cleanup. After the main task is cancelled, :meth:`asyncio."
"Runner.run` raises :exc:`KeyboardInterrupt`."
msgstr ""
"Cuando :const:`signal.SIGINT` es lanzado por :kbd:`Ctrl-C`, el administrador "
"de señales personalizado cancela la tarea principal llamando :meth:`asyncio."
"Task.cancel` que lanza :exc:`asyncio.CancelledError` dentro de la tarea "
"principal. Esto hace que la pila de Python se desenvuelva, los bloques``try/"
"except`` y ``try/finally`` pueden ser usados para liberar recursos. Luego de "
"que la tarea principal es cancelada, :meth:`asyncio.Runner.run` lanza :exc:"
"`KeyboardInterrupt`."
#: ../Doc/library/asyncio-runner.rst:148
msgid ""
Expand All
@@ -203,3 +273,7 @@ msgid ""
"immediately raises the :exc:`KeyboardInterrupt` without cancelling the main "
"task."
msgstr ""
"Un usuario podría escribir un bucle cerrado que no puede ser interrumpido "
"por :meth:`asyncio.Task.cancel`, en cuyo caso la segunda llamada a :kbd:"
"`Ctrl-C` lanza inmediatamente :exc:`KeyboardInterrupt` sin cancelar la tarea "
"principal."
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.