Skip to content

0.0.5

Compare
Choose a tag to compare
@pomponchik pomponchik released this 02 Oct 16:18
· 334 commits to main since this release
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.