Closed alexozer closed 5 years ago
Just tried go run -race _examples/dashboard1.go
and it seems to be working for me. I just rewrote a bunch of things, including removing the async nature of Render
so that probably fixed it. Thanks for pointing this out btw!
It appears the Go race detector finds data races in the dashboard.go example:
It seems as though this may be a natural consequence of making termui.Render() async as this means writing widget properties and reading widget properties during rendering cannot be done sequentially:
Is this considered the standard way of using termui? Or maybe, does termui expect the user to pass a fresh set of widgets to every call to Render()?