Skip to content

Commit 9593e62

Browse files
authored
Update 07_How_to_exchange_objects_between_processes.rst (#89)
修改Joinablequeue,[官方文档](https://docs.python.org/zh-cn/3.8/library/multiprocessing.html?highlight=joinablequeue#multiprocessing.JoinableQueue)
1 parent 2885afb commit 9593e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter3/07_How_to_exchange_objects_between_processes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
|more|
131131
------
132132

133-
队列还有一个 ``JoinaleQueue`` 子类,它有以下两个额外的方法:
133+
队列还有一个 ``JoinableQueue`` 子类,它有以下两个额外的方法:
134134

135135
- ``task_done()``: 此方法意味着之前入队的一个任务已经完成,比如, ``get()`` 方法从队列取回item之后调用。所以此方法只能被队列的消费者调用。
136136
- ``join()``: 此方法将进程阻塞,直到队列中的item全部被取出并执行。

0 commit comments

Comments
 (0)