kopia lustrzana https://github.com/micropython/micropython
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>pull/8281/head
rodzic
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.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue