Skip to content

Releases: mutating/cantok

0.0.26

04 Aug 21:42
fcba83c

Choose a tag to compare

An important update dedicated to internal optimizations. The token interfaces have not changed in any way.

  • Each token now caches information that one of the tokens embedded in it has been canceled. When the token status is requested again, it will not bypass the graph, but will immediately return the result.
  • Added an optimization of the token summation operation: now, if you add a SimpleToken() object that has not been saved to any variable to any another token, this object will be ignored. Thus, the token tree becomes smaller. That is, the operation SimpleToken() + TimeoutToken(5) now gives the result SimpleToken(TimeoutToken(5)), not SimpleToken(SimpleToken(), TimeoutToken(5)) like before. In addition, this leads to the fact that the sums of more than 3 tokens become "flat".
  • Fixed a bug where you could set the cancelled attribute of a token whose nested token was canceled to False.
  • Added the __slots__ attribute to the cancellation report object. This allowed you to save an extra 8 bytes on each such object, provided that you have Python 3.10 or later.
  • Type hints slightly improved. The file structure of the project is now more extensive. The package metadata was slightly expanded.

0.0.25

24 Jul 08:53
f2f2c15

Choose a tag to compare

A little update.

  • Added a small optimization. Now, when adding and embedding tokens, DefaultToken's are ignored.
  • Added a test coverage gate - 100%.

0.0.24

22 Jul 12:27
5c01a6a

Choose a tag to compare

Technical release, library features have not changed.

  • Expanded the number of checks that occur in CI. Now linters are applied to tests as well.
  • Made some minor corrections (for example, removing unnecessary imports) to the tests.
  • Added issue templates.
  • Fixed a typo in the documentation.

0.0.23

15 Jul 20:13
108b08c

Choose a tag to compare

A small but important update.

  • Added a new type of tokens - DefaultToken.
  • Expanded the documentation.

0.0.22

23 Feb 21:35
7c86ee3

Choose a tag to compare

A small update with no changes in functionality.

  • The links in the documentation have been corrected.
  • A new section dedicated to the ecosystem has been added to the documentation. The first representative of the ecosystem mentioned there is suby.

0.0.21

20 Feb 12:30
7d6fc84

Choose a tag to compare

Nothing important, just updating the documentation.

0.0.20

17 Feb 21:22
9fe0c5f

Choose a tag to compare

A small update, functionality is not affected.

  • Added some details to the documentation.
  • Added new tests.

0.0.19

17 Feb 13:44
666aad4

Choose a tag to compare

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

15 Feb 22:23
318dfbd

Choose a tag to compare

A small but important update.

  • Added caching of a positive condition check result for ConditionToken.

0.0.17

02 Feb 19:28
684629a

Choose a tag to compare

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.