Skip to content

Commit f2fd9f0

Browse files
authored
Update README.md
1 parent 9015185 commit f2fd9f0

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
# Python Concurrent (thread-safe) collections
2-
3-
Thread-safe Python collections: `ConcurrentBag`, `ConcurrentDictionary`, and `ConcurrentQueue`.
4-
5-
Inspired from the amazing [C#'s concurrent collections](https://learn.microsoft.com/en-us/dotnet/api/system.collections.concurrent?view=net-9.0).
6-
7-
81
## tl;dr
92

103
Python's built-in `list`, `dict`, and `deque` are thread-safe for some operations, but not all.
114

125
`concurrent_collections` provides thread-safe alternatives by using locks internally to ensure safe concurrent access and mutation from multiple threads.
136

7+
Inspired from the amazing [C#'s concurrent collections](https://learn.microsoft.com/en-us/dotnet/api/system.collections.concurrent?view=net-9.0).
8+
149
## Why use these collections?
1510

1611
**_There is a lot of confusion on whether Python collections are thread-safe or not_**<sup>1, 2, 3</sup>.

0 commit comments

Comments
 (0)