MCPcopy Create free account
hub / github.com/catboost/catboost / ScheduleRequest

Method ScheduleRequest

library/cpp/neh/https.cpp:1777–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1775 }
1776
1777 THandleRef ScheduleRequest(const TMessage& msg, IOnRecv* fallback, TServiceStatRef& ss) override {
1778 TSimpleHandleRef ret(new TSimpleHandle(fallback, msg, !ss ? nullptr : new TStatCollector(ss)));
1779 try {
1780 TAutoPtr<THttpsRequest<T>> req(new THttpsRequest<T>(ret, msg));
1781 JobQueue()->Schedule(req);
1782 return ret.Get();
1783 } catch (...) {
1784 ret->ResetOnRecv();
1785 throw;
1786 }
1787 }
1788
1789 TStringBuf Scheme() const noexcept override {
1790 return T::Name();

Callers

nothing calls this directly

Calls 4

JobQueueClass · 0.85
ResetOnRecvMethod · 0.80
ScheduleMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected