Skip to content

Releases: mutating/cantok

0.0.43

Choose a tag to compare

@pomponchik pomponchik released this 20 Jul 22:37
d116cd9

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

Choose a tag to compare

@pomponchik pomponchik released this 30 Jun 22:15
2d2b4e7

A minor update: documentation was added for each unit test.

0.0.41

Choose a tag to compare

@pomponchik pomponchik released this 30 Jun 12:01
81f3235

A set of minor changes:

  • CounterToken is 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 repr was changed; the printo library is now used. During this process, an issue was discovered with one of printo’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

Choose a tag to compare

@pomponchik pomponchik released this 29 Jun 21:39
4a175bd

It's now easier to patch TimeoutToken.

Closes #55.

0.0.39

Choose a tag to compare

@pomponchik pomponchik released this 29 Jun 21:03
5f9c70c

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

Choose a tag to compare

@pomponchik pomponchik released this 24 Jun 14:54
92db105

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

Choose a tag to compare

@pomponchik pomponchik released this 23 Jun 09:00
47b35f4

The optimization that removed certain tokens during addition was removed.

Sloses #51

0.0.36

Choose a tag to compare

@pomponchik pomponchik released this 31 Mar 13:22
41ff38c

The documentation is slightly improved.

0.0.35

Choose a tag to compare

@pomponchik pomponchik released this 30 Mar 23:35
f5fa3c4

The documentation is significantly improved.

0.0.34

Choose a tag to compare

@pomponchik pomponchik released this 30 Mar 21:18
80957c5

Improved the encapsulation of many aspects of the cancellation token implementation.