Skip to content

CONC053

CONC053for x in rx over cancel-aware receiver without ctx

SubsystemConcurrency
Severityerror

Iterating a cancel-aware receiver (Backpressure / LatestValue) suspends on recv, which needs a ctx: Cancel in scope. Add a ctx: Cancel parameter, or use a non-cancel-aware policy. See spec/concurrency.md §“for x in rx loop form”.

From your terminal:

Terminal window
q64 explain CONC053