0.0.5
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 ofbool(token)
is equivalent totoken.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 thecancel()
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 thecheck()
method. - The code has become simpler in places, and new test cases for old functionality have also been added.