Run() and Stop() access the `running` field from different goroutines without synchronization. Replace the bare `bool` with `sync/atomic.Bool` to eliminate the data race. |
||
|---|---|---|
| .. | ||
| context.go | ||
| loop.go | ||
| memory.go | ||
Run() and Stop() access the `running` field from different goroutines without synchronization. Replace the bare `bool` with `sync/atomic.Bool` to eliminate the data race. |
||
|---|---|---|
| .. | ||
| context.go | ||
| loop.go | ||
| memory.go | ||