@@ -71,9 +71,9 @@ Additional functions
71
71
than *timeout * seconds. If *awaitable * is not a task then a task will be
72
72
created from it.
73
73
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 ``:
75
75
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 ``
77
77
or ``try...finally `` to run cleanup code.
78
78
79
79
Returns the return value of *awaitable *.
@@ -108,7 +108,7 @@ class Task
108
108
109
109
.. method :: Task.cancel()
110
110
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
112
112
ignore this exception. Cleanup code may be run by trapping it, or via
113
113
``try ... finally ``.
114
114
@@ -148,7 +148,7 @@ class ThreadSafeFlag
148
148
.. class :: ThreadSafeFlag()
149
149
150
150
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
152
152
callbacks. Flags start in the cleared state.
153
153
154
154
.. method :: ThreadSafeFlag.set()
0 commit comments