File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -973,12 +973,15 @@ Synchronous methods (immediate return):
973
973
queue is full.
974
974
* ` get_nowait ` No arg. Returns an object from the queue. Raises an exception
975
975
if the queue is empty.
976
+ * ` task_done ` No arg. Indicate that a task associated with an enqueued item is complete.
976
977
977
978
Asynchronous methods:
978
979
* ` put ` Arg: the object to put on the queue. If the queue is full, it will
979
980
block until space is available.
980
981
* ` get ` No arg. Returns an object from the queue. If the queue is empty, it
981
982
will block until an object is put on the queue.
983
+ * ` join ` No arg. Block until all items in the queue have been received and
984
+ processed (indicated via task_done).
982
985
983
986
``` python
984
987
import uasyncio as asyncio
You can’t perform that action at this time.
0 commit comments