admin管理员组文章数量:1320628
I want to use H2O Wave to create an interactive dashboard.
My code needs to be able to read messages coming in via UDP and update the dashboard depending on the UDP messages. The process of reading and decoding UDP messages should be in a separate process, but I can't find a good way to update the UI when a message comes in. On the UI, when the UDP process is running, there is also some buttons I could click to send messages via UDP.
I found the example from H2O /@unusualcode/background-jobs-in-wave-or-how-not-to-kill-your-ui-ae1fed95693a but for me the task created in this example is not really running in the background without blocking the UI because when the cancel button is clicked it still waits for the time.sleep to finish to execute.
Does anyone have any idea how I could structure my code to do this?
本文标签: pythonH2O Wave Background taskStack Overflow
版权声明:本文标题:python - H2O Wave Background task - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742070992a2419122.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论