mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-10 04:55:40 +00:00
3e80de3454
* Simplify `.then` (promise api) and tests * Remove tracked future when cancelled. Add tracked future tests * Track and cancel statemachine futures The futures created in each asyncstatemachine instance are tracked, and each future is cancelled and waited in `stop`. Change `asyncstatemachine.stop` to be async so `machine.trackedFutures.cancelAndWait` could be called. Add a constructor for `asyncstatemachine` that initialises the `trackedFutures` instance, and call the constructor from derived class constructors.
9 lines
212 B
Nim
9 lines
212 B
Nim
import ./utils/testoptionalcast
|
|
import ./utils/testkeyutils
|
|
import ./utils/testasyncstatemachine
|
|
import ./utils/testtimer
|
|
import ./utils/testthen
|
|
import ./utils/testtrackedfutures
|
|
|
|
{.warning[UnusedImport]: off.}
|