Close ch and cancel ctx while processing the queue
pancsta opened this issue · 0 comments
pancsta commented
Currently When
, WhenNot
and GetStateCtx
are implemented using channels. This adds mico-delays (see TestStateCtx
) because of goroutine scheduling.
It could be easily avoided if the calculation happened after every tick inside processQueue
.