8000 pomerge from 3.10 branch into 3.8 · python/python-docs-pt-br@ac10dc5 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac10dc5

Browse files
pomerge from 3.10 branch into 3.8
1 parent 5c8f06f commit ac10dc5

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

library/asyncio-eventloop.po

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ msgid ""
6262
"authors of lower-level code, libraries, and frameworks, who need finer "
6363
"control over the event loop behavior."
6464
msgstr ""
65+
"Os desenvolvedores de aplicação normalmente devem usar as funções asyncio de "
66+
"alto nível, como :func:`asyncio.run`, e devem raramente precisar fazer "
67+
"referência ao objeto de loop ou chamar seus métodos. Esta seção destina-se "
68+
"principalmente a autores de código de baixo nível, bibliotecas e frameworks, "
69+
"que precisam de um controle mais preciso sobre o comportamento do laço de "
70+
"evento."
6571

6672
#: ../../library/asyncio-eventloop.rst:26
6773
msgid "Obtaining the Event Loop"
@@ -72,55 +78,76 @@ msgid ""
7278
"The following low-level functions can be used to get, set, or create an "
7379
"event loop:"
7480
msgstr ""
81+
"As seguintes funções baixo nível podem ser usadas para obter, definir, ou "
82+
"criar um laço de eventos:"
7583

7684
#: ../../library/asyncio-eventloop.rst:32
7785
msgid "Return the running event loop in the current OS thread."
7886
msgstr ""
87+
"Retorna o laço de eventos em execução na thread atual do sistema operacional."
7988

8089
#: ../../library/asyncio-eventloop.rst:34
8190
msgid ""
8291
"If there is no running event loop a :exc:`RuntimeError` is raised. This "
8392
"function can only be called from a coroutine or a callback."
8493
msgstr ""
94+
"Se não existir nenhum laço de eventos em execução, um :exc:`RuntimeError` é "
95+
"levantado. Esta função somente pode ser chamada a partir de uma corrotina ou "
96+
"uma função de retorno."
8597

8698
#: ../../library/asyncio-eventloop.rst:41
8799
msgid "Get the current event loop."
88-
msgstr ""
100+
msgstr "Obtém o laço de eventos atual."
89101

90102
#: ../../library/asyncio-eventloop.rst:43
91103
msgid ""
92104
"If there is no current event loop set in the current OS thread, the OS "
93105
"thread is main, and :func:`set_event_loop` has not yet been called, asyncio "
94106
"will create a new event loop and set it as the current one."
95107
msgstr ""
108+
"Se não existe nenhum laço de eventos definido na thread atual do sistema "
109+
"operacional, é a thread principal do sistema operacional, e :func:"
110+
"`set_event_loop` ainda não foi chamada, asyncio irá criar um novo laço de "
111+
"eventos e defini-lo como o atual."
96112

97113
#: ../../library/asyncio-eventloop.rst:48
98114
msgid ""
99115
"Because this function has rather complex behavior (especially when custom "
100116
"event loop policies are in use), using the :func:`get_running_loop` function "
101117
"is preferred to :func:`get_event_loop` in coroutines and callbacks."
102118
msgstr ""
119+
"Devido ao fato desta função ter um comportamento particularmente complexo "
120+
"(especialmente quando políticas de laço de eventos customizadas estão sendo "
121+
"usadas), usar a função :func:`get_running_loop` é preferido ao invés de :"
122+
"func:`get_event_loop` em corrotinas e funções de retorno."
103123

104124
#: ../../library/asyncio-eventloop.rst:53
105125
msgid ""
106126
"Consider also using the :func:`asyncio.run` function instead of using lower "
107127
"level functions to manually create and close an event loop."
108128
msgstr ""
129+
"Considere também usar a função :func:`asyncio.run` ao invés de usar funções "
130+
"de baixo nível para manualmente criar e fechar um laço de eventos."
109131

110132
#: ../../library/asyncio-eventloop.rst:58
111133
msgid "Set *loop* as a current event loop for the current OS thread."
112134
msgstr ""
135+
"Define *loop* como o laço de eventos atual para a thread atual do sistema "
136+
"operacional."
113137

114138
#: ../../library/asyncio-eventloop.rst:62
115139
msgid "Create a new event loop object."
116-
msgstr ""
140+
msgstr "Cria um novo objeto de laço de eventos."
117141

118142
#: ../../library/asyncio-eventloop.rst:64
119143
msgid ""
120144
"Note that the behaviour of :func:`get_event_loop`, :func:`set_event_loop`, "
121145
"and :func:`new_event_loop` functions can be altered by :ref:`setting a "
122146
"custom event loop policy <asyncio-policies>`."
123147
msgstr ""
148+
"Perceba que o comportamento das funções :func:`get_event_loop`, :func:"
149+
"`set_event_loop`, e :func:`new_event_loop` podem ser alteradas :ref:"
150+
"`definindo uma política de laço de eventos customizada <asyncio-policies>`."
124151

125152
#: ../../library/asyncio-eventloop.rst:70
126153
msgid "Contents"

0 commit comments

Comments
 (0)
0