MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / wait_for_pending_input

Function wait_for_pending_input

src/runner/cli_wide_posix.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool wait_for_pending_input(int checks, int delay_ms) {
64 for (int i = 0; i < checks; ++i) {
65 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms));
66 if (stdin_has_pending_input(0)) {
67 return true;
68 }
69 }
70 return false;
71}
72
73void trim_trailing_empty_lines(std::vector<std::string>& lines) {
74 while (lines.size() > 1 && lines.back().empty()) {

Callers 1

get_interactive_inputMethod · 0.85

Calls 1

stdin_has_pending_inputFunction · 0.85

Tested by

no test coverage detected