Skip to content

Commit 7861edd

Browse files
luiz-brandaodpgeorge
authored andcommitted
docs/library/uasyncio: Consistently use "uasyncio" instead of "asyncio".
1 parent 3d58bb2 commit 7861edd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/library/uasyncio.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ Additional functions
7171
than *timeout* seconds. If *awaitable* is not a task then a task will be
7272
created from it.
7373

74-
If a timeout occurs, it cancels the task and raises ``asyncio.TimeoutError``:
74+
If a timeout occurs, it cancels the task and raises ``uasyncio.TimeoutError``:
7575
this should be trapped by the caller. The task receives
76-
``asyncio.CancelledError`` which may be ignored or trapped using ``try...except``
76+
``uasyncio.CancelledError`` which may be ignored or trapped using ``try...except``
7777
or ``try...finally`` to run cleanup code.
7878

7979
Returns the return value of *awaitable*.
@@ -108,7 +108,7 @@ class Task
108108

109109
.. method:: Task.cancel()
110110

111-
Cancel the task by injecting ``asyncio.CancelledError`` into it. The task may
111+
Cancel the task by injecting ``uasyncio.CancelledError`` into it. The task may
112112
ignore this exception. Cleanup code may be run by trapping it, or via
113113
``try ... finally``.
114114

@@ -148,7 +148,7 @@ class ThreadSafeFlag
148148
.. class:: ThreadSafeFlag()
149149

150150
Create a new flag which can be used to synchronise a task with code running
151-
outside the asyncio loop, such as other threads, IRQs, or scheduler
151+
outside the uasyncio loop, such as other threads, IRQs, or scheduler
152152
callbacks. Flags start in the cleared state.
153153

154154
.. method:: ThreadSafeFlag.set()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy