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

Method Attach

library/cpp/par/par_remote.h:229–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227 Y_ASSERT(Callback.Get() == nullptr);
228 }
229 void Attach(T* obj, TRemoteQueryProcessor* queryProc, const TGUID& reqId) {
230 if (reqId.IsEmpty() || queryProc == nullptr)
231 return;
232 Callback = new TCallback(obj);
233 queryProc->RegisterCallback(reqId, Callback.Get());
234 }
235 void Detach() {
236 if (Callback.Get() == nullptr)
237 return;

Callers 2

LaunchOpsMethod · 0.80
TRemoteMRCommandExecMethod · 0.80

Calls 3

RegisterCallbackMethod · 0.80
IsEmptyMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected