@@ -2426,14 +2426,17 @@ msgstr ""
2426
2426
2427
2427
#: ../../library/asyncio-eventloop.rst:1494
2428
2428
msgid "An event loop based on the :mod:`selectors` module."
2429
- msgstr ""
2429
+ msgstr "Um laço de eventos baseado no módulo :mod:`selectors`. "
2430
2430
2431
2431
#: ../../library/asyncio-eventloop.rst:1496
2432
2432
msgid ""
2433
2433
"Uses the most efficient *selector* available for the given platform. It is "
2434
2434
"also possible to manually configure the exact selector implementation to be "
2435
2435
"used::"
2436
2436
msgstr ""
2437
+ "Usa o *seletor* mais eficiente disponível para a plataforma fornecida. "
2438
+ "Também é possível configurar manualmente a implementação exata do seletor a "
2439
+ "ser utilizada::"
2437
2440
2438
2441
#: ../../library/asyncio-eventloop.rst:1508
2439
2442
msgid ":ref:`Availability <availability>`: Unix, Windows."
@@ -2442,6 +2445,7 @@ msgstr ":ref:`Disponibilidade<availability>`: Unix, Windows."
2442
2445
#: ../../library/asyncio-eventloop.rst:1513
2443
2446
msgid "An event loop for Windows that uses \" I/O Completion Ports\" (IOCP)."
2444
2447
msgstr ""
2448
+ "Um laço de eventos para Windows que usa \" Conclusão de Portas I/O\" (IOCP)."
2445
2449
2446
2450
#: ../../library/asyncio-eventloop.rst:1516
2447
2451
msgid ":ref:`Availability <availability>`: Windows."
@@ -2452,17 +2456,22 @@ msgid ""
2452
2456
"`MSDN documentation on I/O Completion Ports <https://docs.microsoft.com/en-"
2453
2457
"ca/windows/desktop/FileIO/i-o-completion-ports>`_."
2454
2458
msgstr ""
2459
+ "`Documentação da MSDN sobre conclusão de portas I/O <https://docs.microsoft."
2460
+ "com/en-ca/windows/desktop/FileIO/i-o-completion-ports>`_."
2455
2461
2456
2462
#: ../../library/asyncio-eventloop.rst:1525
2457
2463
msgid "Abstract base class for asyncio-compliant event loops."
2458
- msgstr ""
2464
+ msgstr "Classe base abstrata para laços de eventos compatíveis com asyncio. "
2459
2465
2460
2466
#: ../../library/asyncio-eventloop.rst:1527
2461
2467
msgid ""
2462
2468
"The :ref:`Event Loop Methods <asyncio-event-loop>` section lists all methods "
2463
2469
"that an alternative implementation of ``AbstractEventLoop`` should have "
2464
2470
"defined."
2465
2471
msgstr ""
2472
+ "A seção :ref:`Métodos de laço de eventos <asyncio-event-loop>` lista todos "
2473
+ "os métodos que uma implementação alternativa de ``AbstractEventLoop`` deve "
2474
+ "definir."
2466
2475
2467
2476
#: ../../library/asyncio-eventloop.rst:1533
2468
2477
msgid "Examples"
@@ -2475,72 +2484,95 @@ msgid ""
2475
2484
"call_soon`. Modern asyncio applications rarely need to be written this way; "
2476
2485
"consider using the high-level functions like :func:`asyncio.run`."
2477
2486
msgstr ""
2487
+ "Perceba que todos os exemplos nesta seção **propositalmente** mostram como "
2488
+ "usar as APIs de baixo nível do laço de eventos, tais como :meth:`loop."
2489
+ "run_forever` e :meth:`loop.call_soon`. Aplicações asyncio modernas raramente "
2490
+ "precisam ser escritas desta forma; considere usar as funções de alto nível "
2491
+ "como :func:`asyncio.run`."
2478
2492
2479
2493
#: ../../library/asyncio-eventloop.rst:1545
2480
2494
msgid "Hello World with call_soon()"
2481
- msgstr ""
2495
+ msgstr "Hello World com call_soon() "
2482
2496
2483
2497
#: ../../library/asyncio-eventloop.rst:1547
2484
2498
msgid ""
2485
2499
"An example using the :meth:`loop.call_soon` method to schedule a callback. "
2486
2500
"The callback displays ``\" Hello World\" `` and then stops the event loop::"
2487
2501
msgstr ""
2502
+ "Um exemplo usando o método :meth:`loop.call_soon` para agendar uma função de "
2503
+ "retorno. A função de retorno exibe ``\" Hello World\" `` e então para o laço "
2504
+ "de eventos::"
2488
2505
2489
2506
#: ../../library/asyncio-eventloop.rst:1571
2490
2507
msgid ""
2491
2508
"A similar :ref:`Hello World <coroutine>` example created with a coroutine "
2492
2509
"and the :func:`run` function."
2493
2510
msgstr ""
2511
+ "Um exemplo similar a :ref:`Hello World <coroutine>` criado com uma corrotina "
2512
+ "e a função :func:`run`."
2494
2513
2495
2514
#: ../../library/asyncio-eventloop.rst:1578
2496
2515
msgid "Display the current date with call_later()"
2497
- msgstr ""
2516
+ msgstr "Exibe a data atual com call_later() "
2498
2517
2499
2518
#: ../../library/asyncio-eventloop.rst:1580
2500
2519
msgid ""
2501
2520
"An example of a callback displaying the current date every second. The "
2502
2521
"callback uses the :meth:`loop.call_later` method to reschedule itself after "
2503
2522
"5 seconds, and then stops the event loop::"
2504
2523
msgstr ""
2524
+ "Um exemplo de uma função de retorno mostrando a data atual a cada segundo. A "
2525
+ "função de retorno usa o método :meth:`loop.call_later` para reagendar a si "
2526
+ "mesma depois de 5 segundos, e então para o laço de eventos::"
2505
2527
2506
2528
#: ../../library/asyncio-eventloop.rst:1608
2507
2529
msgid ""
2508
2530
"A similar :ref:`current date <asyncio_example_sleep>` example created with a "
2509
2531
"coroutine and the :func:`run` function."
2510
2532
msgstr ""
2533
+ "Um exemplo similar a :ref:`data atual <asyncio_example_sleep>` criado com "
2534
+ "uma corrotina e a função :func:`run`."
2511
2535
2512
2536
#: ../../library/asyncio-eventloop.rst:1615
2513
2537
msgid "Watch a file descriptor for read events"
2514
- msgstr ""
2538
+ msgstr "Observa um descritor de arquivo por eventos de leitura "
2515
2539
2516
2540
#: ../../library/asyncio-eventloop.rst:1617
2517
2541
msgid ""
2518
2542
"Wait until a file descriptor received some data using the :meth:`loop."
2519
2543
"add_reader` method and then close the event loop::"
2520
2544
msgstr ""
2545
+ "Aguarda até que um descritor de arquivo tenha recebido alguns dados usando o "
2546
+ "método :meth:`loop.add_reader` e então fecha o laço de eventos::"
2521
2547
2522
2548
#: ../../library/asyncio-eventloop.rst:1655
2523
2549
msgid ""
2524
2550
"A similar :ref:`example <asyncio_example_create_connection>` using "
2525
2551
"transports, protocols, and the :meth:`loop.create_connection` method."
2526
2552
msgstr ""
2553
+ "Um :ref:`exemplo <asyncio_example_create_connection>` similar usando "
2554
+ "transportes, protocolos, e o método :meth:`loop.create_connection`."
2527
2555
2528
2556
#: ../../library/asyncio-eventloop.rst:1659
2529
2557
msgid ""
2530
2558
"Another similar :ref:`example <asyncio_example_create_connection-streams>` "
2531
2559
"using the high-level :func:`asyncio.open_connection` function and streams."
2532
2560
msgstr ""
2561
+ "Outro :ref:`exemplo <asyncio_example_create_connection-streams>` similar "
2562
+ "usando a função de alto nível :func:`asyncio.open_connection` e streams."
2533
2563
2534
2564
#: ../../library/asyncio-eventloop.rst:1667
2535
2565
msgid "Set signal handlers for SIGINT and SIGTERM"
2536
- msgstr ""
2566
+ msgstr "Define tratadores de sinais para SIGINT e SIGTERM "
2537
2567
2538
2568
#: ../../library/asyncio-eventloop.rst:1669
2539
2569
msgid "(This ``signals`` example only works on Unix.)"
2540
- msgstr ""
2570
+ msgstr "(Este exemplo de ``signals`` apenas funciona no Unix.) "
2541
2571
2542
2572
#: ../../library/asyncio-eventloop.rst:1671
2543
2573
msgid ""
2544
2574
"Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using "
2545
2575
"the :meth:`loop.add_signal_handler` method::"
2546
2576
msgstr ""
2577
+ "Registra tratadores para sinais :py:data:`SIGINT` e :py:data:`SIGTERM` "
2578
+ "usando o método :meth:`loop.add_signal_handler`::"
0 commit comments