Skip to content

v0.22.1

Choose a tag to compare

@wajihtba wajihtba released this 05 Nov 20:25
· 112 commits to main since this release

Upgrade from 0.22.0 is recommended for anyone whose tools have side effects and a short Timeout. No API or format change.

Fixed

  • core: a call whose Timeout passes (or whose run is canceled) while it is still in the chain before its handler — a slow BeforeDispatch gate, such as weft/thread's durable dispatch record on loaded storage — never starts its handler afterwards. The loop answered such a call tool "X" timed out after d (or canceled), as not started, but the chain's goroutine carried on and ran the handler once the gate let it through: an effect the model had been told did not happen, beside no recovery request in a thread session (the handler was not started when the loop looked, so the call was not of unknown outcome). Whether the handler started is now decided once, under one lock, against the loop giving up: started first, the call is of unknown outcome as before; given up on first, the handler never runs. AfterDispatch is still called for a call the gate passed.