Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iThink32 authored Oct 30, 2020
1 parent 80bd60f commit 1a5fbf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# Thread-Safe-Dictionary

## Why do we need this?
Dictionaries in Swift are not thread safe , they lead to wierd crashes which are very hard to debug , this class solves this problem.
This class contains a dictionary whose accesses are made thread safe by using a concurrent queue with barriers.
It also conforms to the `Collection` Protocol and also has all the relevant `subscript` overrides which means you can use it just like a normal dictionary.
1. Dictionaries in Swift are not thread safe , they lead to wierd crashes which are very hard to debug.This class solves this problem by using a dictionary whose accesses are made thread safe by using a concurrent queue with a barrier.
2. It also conforms to the `Collection` Protocol and also has all the relevant `subscript` overrides which means you can use it just like a normal dictionary.


### Usage:
Expand Down

0 comments on commit 1a5fbf9

Please sign in to comment.