Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51a860e

Browse files
geryogamcsabella
authored andcommitted
Correct typos in the Barrier specification (GH-9395)
1 parent b594784 commit 51a860e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/library/threading.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,15 +968,15 @@ As an example, here is a simple way to synchronize a client and server thread::
968968
Return the barrier to the default, empty state. Any threads waiting on it
969969
will receive the :class:`BrokenBarrierError` exception.
970970

971-
Note that using this function may can require some external
971+
Note that using this function may require some external
972972
synchronization if there are other threads whose state is unknown. If a
973973
barrier is broken it may be better to just leave it and create a new one.
974974

975975
.. method:: abort()
976976

977977
Put the barrier into a broken state. This causes any active or future
978978
calls to :meth:`wait` to fail with the :class:`BrokenBarrierError`. Use
979-
this for example if one of the needs to abort, to avoid deadlocking the
979+
this for example if one of the threads needs to abort, to avoid deadlocking the
980980
application.
981981

982982
It may be preferable to simply create the barrier with a sensible

0 commit comments

Comments
 (0)