MCPcopy Create free account
hub / github.com/EasyRPG/Player / ClearRequests

Method ClearRequests

src/async_handler.cpp:216–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void AsyncHandler::ClearRequests() {
217 auto it = async_requests.begin();
218 while (it != async_requests.end()) {
219 if (it->second.IsReady()) {
220 it = async_requests.erase(it);
221 } else {
222 ++it;
223 }
224 }
225 async_requests.clear();
226}
227
228FileRequestAsync* AsyncHandler::RequestFile(std::string_view folder_name, std::string_view file_name) {
229 auto path = FileFinder::MakePath(folder_name, file_name);

Callers

nothing calls this directly

Calls 4

IsReadyMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected