Skip to content

Releases: mutating/cantok

0.0.13

Choose a tag to compare

@pomponchik pomponchik released this 07 Jan 14:51
86351b4

A little update.

0.0.12

Choose a tag to compare

@pomponchik pomponchik released this 07 Jan 13:31
120e6f3

A small purely technical release.

  • Automated the release process.
  • Added the py.typed file.

0.0.11

Choose a tag to compare

@pomponchik pomponchik released this 19 Dec 23:58
53ccb1c

Not a very big update, but an extremely important one.

  • Fixed a problem with distribution using the pyproject.toml file. Now the package you are installing contains everything you need. I'm sorry for this mistake earlier.
  • The wait() method has both synchronous and asynchronous versions.

0.0.10

Choose a tag to compare

@pomponchik pomponchik released this 23 Nov 17:00
121cb5e

Microscopic update.

  • Added messages for several exceptions.

0.0.9

Choose a tag to compare

@pomponchik pomponchik released this 23 Nov 16:29
6f02ec4

A small but important update for those who love asynchronous programming!

  • Added the wait() method, which transfers control until the token is canceled.

0.0.8

Choose a tag to compare

@pomponchik pomponchik released this 26 Oct 22:46
c94a81f

Big technical update!

  • Instead of setup.py, now pyproject.toml.
  • Python 3.12 support.
  • New documentation, now on a separate site.
  • New package build system.

0.0.6

Choose a tag to compare

@pomponchik pomponchik released this 08 Oct 22:52
1488db5

Optional minor update.

  • Added type hints. Strict mode is enabled for mypy.
  • Simplified the sample code in the documentation.
  • Added some tests.
  • The logo has been slightly changed.

0.0.5

Choose a tag to compare

@pomponchik pomponchik released this 02 Oct 16:18
86598f7

Important update!

  • More compact output when using the repr function in relation to tokens.
  • Added the ability to cast to the bool type. The result of bool(token) is equivalent to token.keep_on(). This allows you to make the code of cycles and conditions using tokens more compact and more beautiful.
  • The counter inside the CounterToken continues to decrease even if it was canceled by calling the cancel() method or the cancellation status was inherited from another token that was canceled. This is important because it depends on which exception will be raised when using the check() method.
  • The code has become simpler in places, and new test cases for old functionality have also been added.

0.0.4

Choose a tag to compare

@pomponchik pomponchik released this 29 Sep 13:09
ff5bde3

Important update!

  • There is a new method - check(), which raises an exception if the token is canceled.
  • Several exceptions have been added, one for each token class separately.
  • An internal reporting mechanism has been added to find out which of the tokens in the hierarchy has been canceled.

0.0.3

Choose a tag to compare

@pomponchik pomponchik released this 25 Sep 07:57
c47a1e1

Minor edits in the documentation.