@@ -318,6 +318,8 @@ msgid ""
318
318
"Note that there is no need to call this function when :func:`asyncio.run` is "
319
319
"used."
320
320
msgstr ""
321
+ "Perceba que não é necessário chamar esta função quando :func:`asyncio.run` "
322
+ "for usado."
321
323
322
324
#: ../../library/asyncio-eventloop.rst:166
323
325
#: ../../library/asyncio-eventloop.rst:1062
@@ -327,7 +329,7 @@ msgstr "Exemplo::"
327
329
328
330
#: ../../library/asyncio-eventloop.rst:178
329
331
msgid "Scheduling callbacks"
330
- msgstr ""
332
+ msgstr "Agendando funções de retorno "
331
333
332
334
#: ../../library/asyncio-eventloop.rst:182
333
335
msgid ""
@@ -340,6 +342,8 @@ msgid ""
340
342
"Callbacks are called in the order in which they are registered. Each "
341
343
"callback will be called exactly once."
342
344
msgstr ""
345
+ "Funções de retorno são chamadas na ordem em que elas foram registradas. Cada "
346
+ "função de retorno será chamada exatamente uma vez."
343
347
344
348
#: ../../library/asyncio-eventloop.rst:188
345
349
#: ../../library/asyncio-eventloop.rst:251
@@ -348,22 +352,29 @@ msgid ""
348
352
"class:`contextvars.Context` for the *callback* to run in. The current "
349
353
"context is used when no *context* is provided."
350
354
msgstr ""
355
+ "Um argumento opcional somente-nomeado *context* permite especificar um :"
356
+ "class:`contextvars.Context` customizado para executar na *função de "
357
+ "retorno*. O contexto atual é usado quando nenhum *context* é fornecido."
351
358
352
359
#: ../../library/asyncio-eventloop.rst:192
353
360
msgid ""
354
361
"An instance of :class:`asyncio.Handle` is returned, which can be used later "
355
362
"to cancel the callback."
356
363
msgstr ""
364
+ "Uma instância de :class:`asyncio.Handle` é retornado, o qual pode ser usado "
365
+ "posteriormente para cancelar a função de retorno."
357
366
358
367
#: ../../library/asyncio-eventloop.rst:195
359
368
msgid "This method is not thread-safe."
360
- msgstr ""
369
+ msgstr "Este método não é seguro para thread. "
361
370
362
371
#: ../../library/asyncio-eventloop.rst:199
363
372
msgid ""
364
373
"A thread-safe variant of :meth:`call_soon`. Must be used to schedule "
365
374
"callbacks *from another thread*."
366
375
msgstr ""
376
+ "Uma variante segura para thread do :meth:`call_soon`. Deve ser usada para "
377
+ "agendar funções de retorno *a partir de outra thread*."
367
378
368
379
#: ../../library/asyncio-eventloop.rst:202
369
380
msgid ""
@@ -380,120 +391,160 @@ msgid ""
380
391
"The *context* keyword-only parameter was added. See :pep:`567` for more "
381
392
"details."
382
393
msgstr ""
394
+ "O parâmetro somente-nomeado *context* foi adicionado. Veja :pep:`567` para "
395
+ "mais detalhes."
383
396
384
397
#: ../../library/asyncio-eventloop.rst:213
385
398
msgid ""
386
399
"Most :mod:`asyncio` scheduling functions don't allow passing keyword "
387
400
"arguments. To do that, use :func:`functools.partial`::"
388
401
msgstr ""
402
+ "Maior parte das funções de agendamento :mod:`asyncio` não permite passar "
403
+ "argumentos nomeados. Para fazer isso, use :func:`functools.partial`::"
389
404
390
405
#: ../../library/asyncio-eventloop.rst:220
391
406
msgid ""
392
407
"Using partial objects is usually more convenient than using lambdas, as "
393
408
"asyncio can render partial objects better in debug and error messages."
394
409
msgstr ""
410
+ "Usar objetos parciais é usualmente mais conveniente que usar lambdas, pois "
411
+ "asyncio pode renderizar objetos parciais melhor durante debug e mensagens de "
412
+ "erro."
395
628C
413
396
414
#: ../../library/asyncio-eventloop.rst:228
397
415
msgid "Scheduling delayed callbacks"
398
- msgstr ""
416
+ msgstr "Agendando funções de retorno atrasadas "
399
417
400
418
#: ../../library/asyncio-eventloop.rst:230
401
419
msgid ""
402
420
"Event loop provides mechanisms to schedule callback functions to be called "
403
421
"at some point in the future. Event loop uses monotonic clocks to track time."
404
422
msgstr ""
423
+ "Laço de eventos fornece mecanismos para agendar funções de retorno para "
424
+ "serem chamadas em algum ponto no futuro. Laço de eventos usa relógios "
425
+ "monotônico para acompanhar o tempo."
405
426
406
427
#: ../../library/asyncio-eventloop.rst:237
407
428
msgid ""
408
429
"Schedule *callback* to be called after the given *delay* number of seconds "
409
430
"(can be either an int or a float)."
410
431
msgstr ""
432
+ "Agenda *callback* para ser chamada após o *delay* número de segundos "
433
+ "fornecido (pode ser um inteiro ou um ponto flutuante)."
411
434
412
435
#: ../../library/asyncio-eventloop.rst:240
413
436
#: ../../library/asyncio-eventloop.rst:272
414
437
msgid ""
415
438
"An instance of :class:`asyncio.TimerHandle` is returned which can be used to "
416
439
"cancel the callback."
417
440
msgstr ""
441
+ "Uma instância de :class:`asyncio.TimerHandle` é retornada, a qual pode ser "
442
+ "usada para cancelar a função de retorno."
418
443
419
444
#: ../../library/asyncio-eventloop.rst:243
420
445
msgid ""
421
446
"*callback* will be called exactly once. If two callbacks are scheduled for "
422
447
"exactly the same time, the order in which they are called is undefined."
423
448
msgstr ""
449
+ "*callback* será chamada exatamente uma vez. Se duas funções de retorno são "
450
+ "agendadas para exatamente o mesmo tempo, a ordem na qual elas são chamadas é "
451
+ "indefinida."
424
452
425
453
#: ../../library/asyncio-eventloop.rst:247
426
454
msgid ""
427
455
"The optional positional *args* will be passed to the callback when it is "
428
456
"called. If you want the callback to be called with keyword arguments use :"
429
457
"func:`functools.partial`."
430
458
msgstr ""
459
+ "O *args* posicional opcional será passado para a função de retorno quando "
460
+ "ela for chamada. Se você quiser que a função de retorno seja chamada com "
461
+ "argumentos nomeados, use :func:`functools.partial`."
431
462
432
463
#: ../../library/asyncio-eventloop.rst:259
433
464
msgid ""
434
465
"In Python 3.7 and earlier with the default event loop implementation, the "
435
466
"*delay* could not exceed one day. This has been fixed in Python 3.8."
436
467
msgstr ""
468
+ "No Python 3.7 e anterior, com a implementação padrão do laço de eventos, o "
469
+ "*delay* não poderia exceder um dia. Isto foi ajustado no Python 3.8."
437
470
438
471
#: ../../library/asyncio-eventloop.rst:266
439
472
msgid ""
440
473
"Schedule *callback* to be called at the given absolute timestamp *when* (an "
441
474
"int or a float), using the same time reference as :meth:`loop.time`."
442
475
msgstr ""
476
+ "Agenda *callback* para ser chamada no timestamp absoluto fornecido *when* "
477
+ "(um inteiro ou um ponto flutuante), usando o mesmo horário de referência "
478
+ "que :meth:`loop.time`."
443
479
444
480
#: ../../library/asyncio-eventloop.rst:270
445
481
msgid "This method's behavior is the same as :meth:`call_later`."
446
- msgstr ""
482
+ msgstr "O comportamento deste método é o mesmo que :meth:`call_later`. "
447
483
448
484
#: ../../library/asyncio-eventloop.rst:279
449
485
msgid ""
450
486
"In Python 3.7 and earlier with the default event loop implementation, the "
451
487
"difference between *when* and the current time could not exceed one day. "
452
488
"This has been fixed in Python 3.8."
453
489
msgstr ""
490
+ "No Python 3.7 e anterior, com a implementação padrão do laço de eventos, a "
491
+ "diferença entre *when* e o horário atual não poderia exceder um dia. Isto "
492
+ "foi ajustado no Python 3.8."
454
493
455
494
#: ../../library/asyncio-eventloop.rst:286
456
495
msgid ""
457
496
"Return the current time, as a :class:`float` value, according to the event "
458
497
"loop's internal monotonic clock."
459
498
msgstr ""
499
+ "Retorna o horário atual, como um valor :class:`float`, de acordo com o "
500
+ "relógio monotônico interno do laço de eventos."
460
501
461
502
#: ../../library/asyncio-eventloop.rst:290
462
503
msgid ""
463
504
"In Python 3.7 and earlier timeouts (relative *delay* or absolute *when*) "
464
505
"should not exceed one day. This has been fixed in Python 3.8."
465
506
msgstr ""
507
+ "No Python 3.7 e anterior, tempos limites (*delay* relativo ou *when* "
508
+ "absoluto) não poderiam exceder um dia. Isto foi ajustado no Python 3.8."
466
509
467
510
#: ../../library/asyncio-eventloop.rst:296
468
511
msgid "The :func:`asyncio.sleep` function."
469
- msgstr ""
512
+ msgstr "A função :func:`asyncio.sleep`. "
470
513
471
514
#: ../../library/asyncio-eventloop.rst:300
472
515
msgid "Creating Futures and Tasks"
473
- msgstr ""
516
+ msgstr "Criando Futures e Tasks "
474
517
475
518
#: ../../library/asyncio-eventloop.rst:304
476
519
msgid "Create an :class:`asyncio.Future` object attached to the event loop."
477
- msgstr ""
520
+ msgstr "Cria um objeto :class:`asyncio.Future` atachado ao laço de eventos. "
478
521
479
522
#: ../../library/asyncio-eventloop.rst:306
480
523
msgid ""
481
524
"This is the preferred way to create Futures in asyncio. This lets third-"
482
525
"party event loops provide alternative implementations of the Future object "
483
526
"(with better performance or instrumentation)."
484
527
msgstr ""
528
+ "Este é o modo preferido para criar Futures em asyncio. Isto permite que "
529
+ "laços de eventos de terceiros forneçam implementações alternativas do objeto "
530
+ "Future (com melhor desempenho ou instrumentação)."
485
531
486
532
#: ../../library/asyncio-eventloop.rst:314
487
533
msgid ""
488
534
"Schedule the execution of a :ref:`coroutine`. Return a :class:`Task` object."
489
535
msgstr ""
536
+ "Agenda a execução de uma :ref:`corrotina <coroutine>`. Retorna um objeto :"
537
+ "class:`Task`."
490
538
491
539
#: ../../library/asyncio-eventloop.rst:317
492
540
msgid ""
493
541
"Third-party event loops can use their own subclass of :class:`Task` for "
494
542
"interoperability. In this case, the result type is a subclass of :class:"
495
543
"`Task`."
496
544
msgstr ""
545
+ "Laços de eventos de terceiros podem usar suas próprias subclasses de :class:"
546
+ "`Task` para interoperabilidade. Neste caso, o tipo do resultado é uma "
547
+ "subclasse de :class:`Task`."
497
548
498
549
#: ../../library/asyncio-eventloop.rst:321
499
550
msgid ""
0 commit comments