Closed grampelberg closed 1 month ago
I think I'll need to experiment a bit with async ratatui. I presume Send
is sufficient or is Sync
also required?
Send is all that is required for my use case, luckily.
It's WIP, but have a look at the sendable-effects branch and see if looks/works ok.
It all or nothing, feature-gated behind "sendable". I'm not sure it's the best approach, but it was the least invasive option.
merged to development
I'm using Tokio for my event/render loop and would love to be able to
Send
. It looks like there'sRc<RefCell<T>>
so that might not be worth the effort, I'm not sure I understand all the implications.Note:
tokio::task::spawn_local
gets rid of theSend
requirement.For some added details, I'm working on a custom SSH server that draws a dashboard per-connection, so I do a
tokio::spawn
for the event/render loop on each connection.