Skip to content

Commit c47a1e1

Browse files
authored
Merge pull request #3 from pomponchik/develop
0.0.3
2 parents a2311ed + 9d7ca6f commit c47a1e1

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ It is highly desirable for library developers to use this pattern for any long-t
7474

7575
## Tokens
7676

77-
All token classes presented in this library have a uniform interface. And they are all inherited from one class: `AbstractToken`. The only reason why you might want to import it is to use it for a type hint. This example illustrates a type hint suitable for any of the tokens:
77+
All token classes presented in this library have a uniform interface. All tokens are thread-safe. And they are all inherited from one class: `AbstractToken`. The only reason why you might want to import it is to use it for a type hint. This example illustrates a type hint suitable for any of the tokens:
7878

7979
```python
8080
from cantok import AbstractToken
@@ -207,7 +207,7 @@ To initialize `ConditionToken`, pass a function to it that does not accept argum
207207
```python
208208
from cantok import ConditionToken
209209

210-
counter = 5
210+
counter = 0
211211
token = ConditionToken(lambda: counter >= 5)
212212

213213
while not token.cancelled:
@@ -312,5 +312,3 @@ from cantok import SimpleToken, CounterToken, TimeoutToken
312312

313313
token = CounterToken(15, SimpleToken(), TimeoutToken(5))
314314
```
315-
316-
`CounterToken` is thread-safe.

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.2
1+
0.0.3

0 commit comments

Comments
 (0)