Releases: mutating/cantok
Release list
0.0.43
An optional exception parameter was added to the check() method of each cancellation token. You can pass a ready-made exception object or an exception class to it; in this case, you will receive your own custom exception rather than a standard one.
0.0.42
A minor update: documentation was added for each unit test.
0.0.41
A set of minor changes:
CounterTokenis now deprecated. It will be removed in upcoming releases and replaced with another similar class. The current design with automatic counter management is considered unsuccessful, and the future implementation will be entirely “manual”—that is, the counter will only change when a special method is called.- The internal implementation of string serialization of tokens via
reprwas changed; theprintolibrary is now used. During this process, an issue was discovered with one ofprinto’s dependencies, and a task for micro-refactoring was created to address it once the issue is resolved. - The package's metadata was expanded.
0.0.40
It's now easier to patch TimeoutToken.
Closes #55.
0.0.39
A new doc parameter was added for all token types. It is intended to make the code more self-documenting and also has the side effect of producing more informative repr values and exception messages.
0.0.38
The old wait mechanism was greatly simplified.
Previously, it was based on a mechanism similar to superfunctions: the wait() method for each token returned a special object that had a special finalizer triggered when the object was destroyed by the reference counting mechanism. The finalizer checked whether the object had been awaited, and if not, it launched a synchronous implementation of the wait.
A problem was discovered in the old mechanism: exception handling. In the event of early termination of the wait due to a timeout, the system was supposed to throw an exception; however, in this mechanism, this is impossible specifically within its synchronous part. For this reason, it was decided to temporarily abandon this optimization.
The old tests related to the wait mechanism have been temporarily moved to tests/skipped/sync_and_async_wait.
The new wait mechanism is now fully synchronous.
0.0.37
The optimization that removed certain tokens during addition was removed.
Sloses #51
0.0.36
0.0.35
The documentation is significantly improved.
0.0.34
Improved the encapsulation of many aspects of the cancellation token implementation.