diff options
| author | Luiz Brandao <fromvega@gmail.com> | 2022-04-14 12:24:35 -0400 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-06-21 17:28:48 +1000 |
| commit | 7861eddd0fe7c9e290cdbc4586dde24d10b68c96 (patch) | |
| tree | 778e7fd469006b02f65f7fcc6e1bcb935ceab4f8 | |
| parent | 3d58bb23c28394fedd26151ab69cc4ba793043f1 (diff) | |
docs/library/uasyncio: Consistently use "uasyncio" instead of "asyncio".
| -rw-r--r-- | docs/library/uasyncio.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/library/uasyncio.rst b/docs/library/uasyncio.rst index a842cc64d..0c7170242 100644 --- a/docs/library/uasyncio.rst +++ b/docs/library/uasyncio.rst @@ -71,9 +71,9 @@ Additional functions than *timeout* seconds. If *awaitable* is not a task then a task will be created from it. - If a timeout occurs, it cancels the task and raises ``asyncio.TimeoutError``: + If a timeout occurs, it cancels the task and raises ``uasyncio.TimeoutError``: this should be trapped by the caller. The task receives - ``asyncio.CancelledError`` which may be ignored or trapped using ``try...except`` + ``uasyncio.CancelledError`` which may be ignored or trapped using ``try...except`` or ``try...finally`` to run cleanup code. Returns the return value of *awaitable*. @@ -108,7 +108,7 @@ class Task .. method:: Task.cancel() - Cancel the task by injecting ``asyncio.CancelledError`` into it. The task may + Cancel the task by injecting ``uasyncio.CancelledError`` into it. The task may ignore this exception. Cleanup code may be run by trapping it, or via ``try ... finally``. @@ -148,7 +148,7 @@ class ThreadSafeFlag .. class:: ThreadSafeFlag() Create a new flag which can be used to synchronise a task with code running - outside the asyncio loop, such as other threads, IRQs, or scheduler + outside the uasyncio loop, such as other threads, IRQs, or scheduler callbacks. Flags start in the cleared state. .. method:: ThreadSafeFlag.set() |
