forked from python/python-docs-es
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasyncio-sync.po
More file actions
352 lines (285 loc) · 9.77 KB
/
asyncio-sync.po
File metadata and controls
352 lines (285 loc) · 9.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2019, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-06 11:59-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/library/asyncio-sync.rst:7
msgid "Synchronization Primitives"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:9
msgid ""
"asyncio synchronization primitives are designed to be similar to those of "
"the :mod:`threading` module with two important caveats:"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:12
msgid ""
"asyncio primitives are not thread-safe, therefore they should not be used "
"for OS thread synchronization (use :mod:`threading` for that);"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:16
msgid ""
"methods of these synchronization primitives do not accept the *timeout* "
"argument; use the :func:`asyncio.wait_for` function to perform operations "
"with timeouts."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:20
msgid "asyncio has the following basic synchronization primitives:"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:22
msgid ":class:`Lock`"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:23
msgid ":class:`Event`"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:24
msgid ":class:`Condition`"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:25
msgid ":class:`Semaphore`"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:26
msgid ":class:`BoundedSemaphore`"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:33
msgid "Lock"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:37
msgid "Implements a mutex lock for asyncio tasks. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:39
msgid ""
"An asyncio lock can be used to guarantee exclusive access to a shared "
"resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:42
msgid "The preferred way to use a Lock is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:51 ../Doc/library/asyncio-sync.rst:178
#: ../Doc/library/asyncio-sync.rst:274
msgid "which is equivalent to::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:64
msgid "Acquire the lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:66
msgid ""
"This method waits until the lock is *unlocked*, sets it to *locked* and "
"returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:71
msgid "Release the lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:73
msgid "When the lock is *locked*, reset it to *unlocked* and return."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:75
msgid "If the lock is *unlocked*, a :exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:79
msgid "Return ``True`` if the lock is *locked*."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:83
msgid "Event"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:87
msgid "An event object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:89
msgid ""
"An asyncio event can be used to notify multiple asyncio tasks that some "
"event has happened."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:92
msgid ""
"An Event object manages an internal flag that can be set to *true* with the :"
"meth:`set` method and reset to *false* with the :meth:`clear` method. The :"
"meth:`wait` method blocks until the flag is set to *true*. The flag is set "
"to *false* initially."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:99
msgid "Example::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:124
msgid "Wait until the event is set."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:126
msgid ""
"If the event is set, return ``True`` immediately. Otherwise block until "
"another task calls :meth:`set`."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:131
msgid "Set the event."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:133
msgid "All tasks waiting for event to be set will be immediately awakened."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:138
msgid "Clear (unset) the event."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:140
msgid ""
"Tasks awaiting on :meth:`wait` will now block until the :meth:`set` method "
"is called again."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:145
msgid "Return ``True`` if the event is set."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:149
msgid "Condition"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:153
msgid "A Condition object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:155
msgid ""
"An asyncio condition primitive can be used by a task to wait for some event "
"to happen and then get exclusive access to a shared resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:159
msgid ""
"In essence, a Condition object combines the functionality of an :class:"
"`Event` and a :class:`Lock`. It is possible to have multiple Condition "
"objects share one Lock, which allows coordinating exclusive access to a "
"shared resource between different tasks interested in particular states of "
"that shared resource."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:165
msgid ""
"The optional *lock* argument must be a :class:`Lock` object or ``None``. In "
"the latter case a new Lock object is created automatically."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:169
msgid ""
"The preferred way to use a Condition is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:191
msgid "Acquire the underlying lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:193
msgid ""
"This method waits until the underlying lock is *unlocked*, sets it to "
"*locked* and returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:198
msgid ""
"Wake up at most *n* tasks (1 by default) waiting on this condition. The "
"method is no-op if no tasks are waiting."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:201 ../Doc/library/asyncio-sync.rst:216
msgid ""
"The lock must be acquired before this method is called and released shortly "
"after. If called with an *unlocked* lock a :exc:`RuntimeError` error is "
"raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:207
msgid "Return ``True`` if the underlying lock is acquired."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:211
msgid "Wake up all tasks waiting on this condition."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:213
msgid "This method acts like :meth:`notify`, but wakes up all waiting tasks."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:222
msgid "Release the underlying lock."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:224
msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:229
msgid "Wait until notified."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:231
msgid ""
"If the calling task has not acquired the lock when this method is called, a :"
"exc:`RuntimeError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:234
msgid ""
"This method releases the underlying lock, and then blocks until it is "
"awakened by a :meth:`notify` or :meth:`notify_all` call. Once awakened, the "
"Condition re-acquires its lock and this method returns ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:241
msgid "Wait until a predicate becomes *true*."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:243
msgid ""
"The predicate must be a callable which result will be interpreted as a "
"boolean value. The final value is the return value."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:249
msgid "Semaphore"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:253
msgid "A Semaphore object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:255
msgid ""
"A semaphore manages an internal counter which is decremented by each :meth:"
"`acquire` call and incremented by each :meth:`release` call. The counter can "
"never go below zero; when :meth:`acquire` finds that it is zero, it blocks, "
"waiting until some task calls :meth:`release`."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:261
msgid ""
"The optional *value* argument gives the initial value for the internal "
"counter (``1`` by default). If the given value is less than ``0`` a :exc:"
"`ValueError` is raised."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:265
msgid ""
"The preferred way to use a Semaphore is an :keyword:`async with` statement::"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:287
msgid "Acquire a semaphore."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:289
msgid ""
"If the internal counter is greater than zero, decrement it by one and return "
"``True`` immediately. If it is zero, wait until a :meth:`release` is called "
"and return ``True``."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:295
msgid "Returns ``True`` if semaphore can not be acquired immediately."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:299
msgid ""
"Release a semaphore, incrementing the internal counter by one. Can wake up a "
"task waiting to acquire the semaphore."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:302
msgid ""
"Unlike :class:`BoundedSemaphore`, :class:`Semaphore` allows making more "
"``release()`` calls than ``acquire()`` calls."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:307
msgid "BoundedSemaphore"
msgstr ""
#: ../Doc/library/asyncio-sync.rst:311
msgid "A bounded semaphore object. Not thread-safe."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:313
msgid ""
"Bounded Semaphore is a version of :class:`Semaphore` that raises a :exc:"
"`ValueError` in :meth:`~Semaphore.release` if it increases the internal "
"counter above the initial *value*."
msgstr ""
#: ../Doc/library/asyncio-sync.rst:323
msgid ""
"Acquiring a lock using ``await lock`` or ``yield from lock`` and/or :keyword:"
"`with` statement (``with await lock``, ``with (yield from lock)``) is "
"deprecated. Use ``async with lock`` instead."
msgstr ""