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. |
||
---|---|---|
.. | ||
addrutils.nim | ||
asyncheapqueue.nim | ||
asyncspawn.nim | ||
asyncstatemachine.nim | ||
fileutils.nim | ||
keyutils.nim | ||
optionalcast.nim | ||
stintutils.nim | ||
then.nim | ||
timer.nim | ||
trackedfutures.nim |