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

Method ExecAsync

library/cpp/par/par_util.h:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 template <class TInputArg, class TOutputArg>
44 class TMapReduceCmd: public IDistrCmd {
45 void ExecAsync(IUserContext* ctx, int hostId, TVector<char>* params, IDCResultNotify* dcNotify, int reqId) const override {
46 CHROMIUM_TRACE_FUNCTION();
47 TInputArg inp;
48 SerializeFromMem(params, inp);
49 TOutputArg outp;
50 DoMapEx(ctx, hostId, &inp, &outp, dcNotify);
51 TVector<char> buf;
52 SerializeToMem(&buf, outp);
53 dcNotify->DistrCmdComplete(reqId, &buf);
54 }
55 void MergeAsync(TVector<TVector<char>>* src, IDCResultNotify* dcNotify, int reqId) const override {
56 CHROMIUM_TRACE_FUNCTION();
57 TVector<TOutputArg> srcData;

Callers

nothing calls this directly

Calls 3

SerializeFromMemFunction · 0.85
SerializeToMemFunction · 0.85
DistrCmdCompleteMethod · 0.45

Tested by

no test coverage detected