docs/library/uasyncio: Consistently use "uasyncio" instead of "asyncio".
This commit is contained in:
parent
3d58bb23c2
commit
7861eddd0f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue