You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is almost equivalent, but avoid running the OnEvent() on the component. It also squash the request together if they are emitted very frequently.
Note that if you want to yield while running the FTXUI loop, you can use a custom loop:
Loop loop(&screen, component);
while (!loop.HasQuitted()) {
//...Do something like pooling the server.// ... Handle the events from the user and refresh the terminal view.
loop.RunOnce();
// Don't waste too much CPU.std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
This is almost equivalent, but avoid running the OnEvent() on the component. It also squash the request together if they are emitted very frequently.
Note that if you want to yield while running the FTXUI loop, you can use a custom loop:
Loop loop(&screen, component);
while (!loop.HasQuitted()) {
//...Do something like pooling the server.// ... Handle the events from the user and refresh the terminal view.
loop.RunOnce();
// Don't waste too much CPU.std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
i have a socket server
server's mouse don't move, client connect
server UI(log) won't update until mouse or keyboard events(or any events)
temp solution: screen.postevent(Event::Custom)
The text was updated successfully, but these errors were encountered: