docs/library/uasyncio.rst: Fix description of ThreadSafeFlag.wait.
When a task waits on a ThreadSafeFlag (and the wait method returns), the flag is immediately reset. This was not clear in the documentation, which appeared to copy the description of the wait method from the Event class. Signed-off-by: Lars Kellogg-Stedman <lars@oddbit.com>
This commit is contained in:
parent
6653856b87
commit
8f6924c9fb
@ -159,7 +159,7 @@ class ThreadSafeFlag
|
||||
.. method:: ThreadSafeFlag.wait()
|
||||
|
||||
Wait for the flag to be set. If the flag is already set then it returns
|
||||
immediately.
|
||||
immediately. The flag is automatically reset upon return from ``wait``.
|
||||
|
||||
A flag may only be waited on by a single task at a time.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user