最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - H2O Wave Background task - Stack Overflow

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论