Cantok

Latest version: v0.0.31

Safety actively analyzes 701442 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.0.19

A small update with no significant changes in functionality.

- Changed the message with which the `ConditionCancellationError` exception is raised.
- The exception documentation is slightly expanded.

0.0.18

A small but important update.

- Added caching of a positive condition check result for `ConditionToken`.

0.0.17

A small but important stabilization update.

- Added some new tests.
- Fixed an error that occurs when asynchronously waiting for a token if there are no strong references to the result returned by the `wait()` method.
- Added some tooling for mutation testing.
- Deleted some dead code.
- Fixed documentation.

0.0.16

A small but extremely important update. It breaks backward compatibility.

- The `wait()` method is now smart. He knows how to determine whether he was called with or without the `await` keyword. In the first case, it will be launched in non-blocking mode, in the second in normal mode.

0.0.15

Minor update with no changes in functionality.

- Slightly corrected the documentation.
- Added a bit of testing.

0.0.14

A small but useful update.

- Now you can send 2 types of callbacks to `ConditionToken`: which are executed before and after checking the condition.

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.