MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / poll

Method poll

Source/Wasm/WasmRuntime.cpp:2922–2934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2920}
2921
2922std::string Git::poll(int64_t jobId) {
2923#ifdef DORA_NO_WA
2924 DORA_UNUSED_PARAM(jobId);
2925 return "{\"state\":\"error\",\"error\":\"Wa Git not supported\"}"s;
2926#else // !DORA_NO_WA
2927 auto result = WaGitPoll(jobId);
2928 std::string data = result ? std::string(result) : "{\"state\":\"error\",\"error\":\"Wa Git not available\"}"s;
2929 if (result) {
2930 WaFreeCString(result);
2931 }
2932 return data;
2933#endif // !DORA_NO_WA
2934}
2935
2936bool Git::cancel(int64_t jobId) {
2937#ifdef DORA_NO_WA

Callers

nothing calls this directly

Calls 3

stringFunction · 0.85
WaGitPollFunction · 0.70
WaFreeCStringFunction · 0.70

Tested by

no test coverage detected